yesmeck
V2EX  ›  Ruby

Ruby跑test assert_equal出来的结果分明是一样的为什么还是失败?

  •  
  •   yesmeck · Jan 31, 2012 · 8067 views
    This topic created in 5393 days ago, the information mentioned may be changed or developed.
    看Ruby第二天Orz....
    ----------------
    Run options:

    # Running tests:

    .F

    Finished tests in 0.002672s, 748.3980 tests/s, 748.3980 assertions/s.

    1) Failure:
    test_two(HuamiTest) [/home/meck/Playground/huami.rb/test/test_huami.rb:11]:
    <"K924748b267770BE"> expected but was
    <"k924748b267770BE">.

    2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
    rake aborted!
    Command failed with status (1): [/usr/bin/ruby -I"lib:test" -I"/usr/lib/rub...]
    1 replies  •  1970-01-01 08:00:00 +08:00
    yesmeck
    yesmeck
    OP
    Jan 31, 2012
    1
    擦。。原来是k的大小写不一样。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1321 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 20:24 · PVG 04:24 · LAX 12:24 · JFK 15:24
    ♥ Do have faith in what you're doing.