diff options
| author | Nobuyoshi Nakada <[email protected]> | 2016-12-01 14:28:28 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <[email protected]> | 2016-12-01 16:48:43 +0900 |
| commit | bd9bc7786fb72ecbae1542e6ab01d7c4cee9e636 (patch) | |
| tree | f7adaea31694ba1bae1e93e9ea2a84a27df5adf2 /test | |
| parent | e4086d4014df49cb49e1c3391964cf064d42a3d4 (diff) | |
| download | mruby-bd9bc7786fb72ecbae1542e6ab01d7c4cee9e636.tar.gz mruby-bd9bc7786fb72ecbae1542e6ab01d7c4cee9e636.zip | |
Fix assertion argument orders
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/unicode.rb | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/test/t/unicode.rb b/test/t/unicode.rb index 7edd65ef2..b8c54ca66 100644 --- a/test/t/unicode.rb +++ b/test/t/unicode.rb @@ -2,34 +2,34 @@ assert('bare \u notation test') do # Mininum and maximum one byte characters - assert_equal("\u0000", "\x00") - assert_equal("\u007F", "\x7F") + assert_equal("\x00", "\u0000") + assert_equal("\x7F", "\u007F") # Mininum and maximum two byte characters - assert_equal("\u0080", "\xC2\x80") - assert_equal("\u07FF", "\xDF\xBF") + assert_equal("\xC2\x80", "\u0080") + assert_equal("\xDF\xBF", "\u07FF") # Mininum and maximum three byte characters - assert_equal("\u0800", "\xE0\xA0\x80") - assert_equal("\uFFFF", "\xEF\xBF\xBF") + assert_equal("\xE0\xA0\x80", "\u0800") + assert_equal("\xEF\xBF\xBF", "\uFFFF") # Four byte characters require the \U notation end assert('braced \u notation test') do # Mininum and maximum one byte characters - assert_equal("\u{0000}", "\x00") - assert_equal("\u{007F}", "\x7F") + assert_equal("\x00", "\u{0000}") + assert_equal("\x7F", "\u{007F}") # Mininum and maximum two byte characters - assert_equal("\u{0080}", "\xC2\x80") - assert_equal("\u{07FF}", "\xDF\xBF") + assert_equal("\xC2\x80", "\u{0080}") + assert_equal("\xDF\xBF", "\u{07FF}") # Mininum and maximum three byte characters - assert_equal("\u{0800}", "\xE0\xA0\x80") - assert_equal("\u{FFFF}", "\xEF\xBF\xBF") + assert_equal("\xE0\xA0\x80", "\u{0800}") + assert_equal("\xEF\xBF\xBF", "\u{FFFF}") # Mininum and maximum four byte characters - assert_equal("\u{10000}", "\xF0\x90\x80\x80") - assert_equal("\u{10FFFF}", "\xF4\x8F\xBF\xBF") + assert_equal("\xF0\x90\x80\x80", "\u{10000}") + assert_equal("\xF4\x8F\xBF\xBF", "\u{10FFFF}") end |
