Permalink
Browse files

Add tests for U::String#dump

  • Loading branch information...
1 parent da4941b commit 2a5e447e8c272ec19e2eb35cc26d79a7c6ac6f58 Nikolai Weibull committed Apr 3, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 test/unit/u/string.rb
View
@@ -1242,6 +1242,8 @@
expect result.not.untrusted? do '%p'.u % ['abc'.untrust] end
expect '"\xC3bc\u{e4}bc".u'.u do "\xC3bcäbc".u.dump end
+ expect '"\"\\\\\n\r\t\f\v\b\a\e".u'.u do "\"\\\n\r\t\f\v\b\a\e".u.dump end
+ expect '"\#$\#@\#{}".u'.u do '#$#@#{}'.u.dump end
expect result.tainted? do ''.u.taint.dump end
expect result.untrusted? do ''.u.untrust.dump end

0 comments on commit 2a5e447

Please sign in to comment.