senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Monday, 10-Sep-2018 20:13:38 JST Masaki Hara Masaki Hara
    • せのお (妹尾 賢)

    https://users.rust-lang.org/t/assert-eq-expected-and-actual/20304
    assert_eq!(a, b) の左右どちらに期待されている値を書くか?という話題。assert_eq!自体はleft/rightと呼んでおり指向性はないが、以前qnighyが調べたときは標準ライブラリ内では右に期待する値を置いているようだった。

    In conversation Monday, 10-Sep-2018 20:13:38 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: www.rust-lang.org
      Assert_eq! expected and actual
      from The Rust Programming Language Forum
      Hi, Just wondering what order expected and actual are supposed to go in the assert_eq! macro. The docs don’t say one way or the other. I know its a stupid question and in truth it really doesn’t matter which way they are listed, but I’d like to keep it standard in my tests. Docs: https://doc.rust-lang.org/std/macro.assert_eq.html Thanks, Jeramy

    Feeds

    • Activity Streams
    • RSS 2.0
    • Atom
    • Help
    • About
    • FAQ
    • TOS
    • Privacy
    • Source
    • Version
    • Contact

    senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

    Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.