yesmeck
V2EX  ›  Ruby

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

  •  
  •   yesmeck · Jan 31, 2012 · 7619 views
    This topic created in 5215 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
        1
    yesmeck  
    OP
       Jan 31, 2012
    擦。。原来是k的大小写不一样。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2660 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:59 · PVG 23:59 · LAX 08:59 · JFK 11:59
    ♥ Do have faith in what you're doing.