Skip to content

Instantly share code, notes, and snippets.

@skade
Created November 8, 2009 04:10
Show Gist options
  • Save skade/229093 to your computer and use it in GitHub Desktop.
Save skade/229093 to your computer and use it in GitHub Desktop.
Compiler warnings and failing tests for rbtree
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.0.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DNDEBUG -DHAVE_RB_ENUMERATORIZE -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -pipe -o dict.o -c dict.c
gcc -I. -I/usr/local/include/ruby-1.9.1/x86_64-darwin10.0.0 -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -DNDEBUG -DHAVE_RB_ENUMERATORIZE -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -pipe -o rbtree.o -c rbtree.c
rbtree.c: In function ‘value_eq’:
rbtree.c:430: warning: implicit conversion shortens 64-bit value into a 32-bit value
rbtree.c: In function ‘to_hash_i’:
rbtree.c:1062: warning: passing argument 1 of ‘rb_hash_tbl’ makes integer from pointer without a cast
gcc -dynamic -bundle -o rbtree.bundle dict.o rbtree.o -L. -L/usr/local/lib -L. -L/usr/local/lib -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -lpthread -ldl -lobjc
Loaded suite test
Started
...............F..............F.....................test.rb:200: warning: block supersedes default value argument
.....F........F............F....
Finished in 0.010448 seconds.
1) Failure:
test_inspect(MultiRBTreeTest) [test.rb:858]:
<"#<MultiRBTree: {\"a\"=>\"A\", \"b\"=>\"B\", \"b\"=>\"C\", \"b\"=>\"D\", \"c\"=>\"C\"}, default=nil, cmp_proc=nil>"> expected but was
<"#<MultiRBTree: \u0000{\"a\"=>\"A\", \"b\"=>\"B\", \"b\"=>\"C\", \"b\"=>\"D\", \"c\"=>\"C\"}, default=nil, cmp_proc=nil>">.
2) Failure:
test_to_s(MultiRBTreeTest) [test.rb:781]:
<"aAbBbCbDcC"> expected but was
<"[[\"a\", \"A\"], [\"b\", \"B\"], [\"b\", \"C\"], [\"b\", \"D\"], [\"c\", \"C\"]]">.
3) Failure:
test_inspect(RBTreeTest) [test.rb:527]:
Expected /#<RBTree: (\{.*\}), default=(.*), cmp_proc=(.*)>/ to match "#<RBTree: \u0000{\"a\"=>\"A\", \"b\"=>\"B\", \"c\"=>\"C\", \"d\"=>\"D\"}, default=\"e\", cmp_proc=#<Proc:0x000001008fd3a0@test.rb:524>>".
4) Failure:
test_pp(RBTreeTest) [test.rb:739]:
<"#<RBTree: {\"#<RBTree: ...>\"=>\"#<RBTree: ...>\"},\n default=\"#<RBTree: ...>\",\n cmp_proc=nil>\n"> expected but was
<"#<RBTree: {\"#<RBTree: \\x00{#<RBTree: \\x00...>=>#<RBTree: \\x00...>}, default=#<RBTree: \\x00...>, cmp_proc=nil>\"=>\n \"#<RBTree: \\x00{#<RBTree: \\x00...>=>#<RBTree: \\x00...>}, default=#<RBTree: \\x00...>, cmp_proc=nil>\"},\n default=\"#<RBTree: \\x00{#<RBTree: \\x00...>=>#<RBTree: \\x00...>}, default=#<RBTree: \\x00...>, cmp_proc=nil>\",\n cmp_proc=nil>\n">.
5) Failure:
test_to_s(RBTreeTest) [test.rb:500]:
<"aAbBcCdD"> expected but was
<"[[\"a\", \"A\"], [\"b\", \"B\"], [\"c\", \"C\"], [\"d\", \"D\"]]">.
84 tests, 285 assertions, 5 failures, 0 errors, 0 skips
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment