V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
yesmeck
V2EX  ›  Ruby

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

  •  
  •   yesmeck · Jan 31, 2012 · 7616 views
    This topic created in 5214 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   ·   1089 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:15 · PVG 07:15 · LAX 16:15 · JFK 19:15
    ♥ Do have faith in what you're doing.