summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-symbol-ext/test/symbol.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-08-04 17:40:18 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-08-04 17:40:18 -0700
commite8c3dd26d55822bcc8e526de51074e72bc7e02d2 (patch)
tree689e823f783d277b2923c2493a515d07c4ebdfbc /mrbgems/mruby-symbol-ext/test/symbol.rb
parente7be58efda6b2446ce46e61d91d637c77dec4fd5 (diff)
parentaa3ff53f048045065baeb58ef903f2637bdcebf3 (diff)
downloadmruby-e8c3dd26d55822bcc8e526de51074e72bc7e02d2.tar.gz
mruby-e8c3dd26d55822bcc8e526de51074e72bc7e02d2.zip
Merge pull request #1435 from Bovi-Li/test-fix-order
[mrbtest] assert_equal(expect, actual) order fix
Diffstat (limited to 'mrbgems/mruby-symbol-ext/test/symbol.rb')
-rw-r--r--mrbgems/mruby-symbol-ext/test/symbol.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-symbol-ext/test/symbol.rb b/mrbgems/mruby-symbol-ext/test/symbol.rb
index b04847b3f..741315d74 100644
--- a/mrbgems/mruby-symbol-ext/test/symbol.rb
+++ b/mrbgems/mruby-symbol-ext/test/symbol.rb
@@ -2,11 +2,11 @@
# Symbol(Ext) Test
assert('Symbol#to_proc') do
- assert_equal :abs.to_proc[-5], 5
+ assert_equal 5, :abs.to_proc[-5]
end
assert('Symbol.all_symbols') do
foo = [:__symbol_test_1, :__symbol_test_2, :__symbol_test_3].sort
symbols = Symbol.all_symbols.select{|sym|sym.to_s.include? '__symbol_test'}.sort
- assert_equal symbols, foo
+ assert_equal foo, symbols
end