diff options
author | Evgenii Pashkin <eapashkin@gmail.com> | 2017-02-19 18:15:58 +0300 |
---|---|---|
committer | Evgenii Pashkin <eapashkin@gmail.com> | 2017-02-19 18:15:58 +0300 |
commit | 2e71aaf8f63887ac07bb3764c40ff0a8ba1f7f2a (patch) | |
tree | efc53d170863c865317daf6062671ddafa3e3055 /tests | |
parent | ccd5de0b83c52d062f2bd3e195a772bde2bf6487 (diff) | |
download | milf-rs-2e71aaf8f63887ac07bb3764c40ff0a8ba1f7f2a.tar.gz milf-rs-2e71aaf8f63887ac07bb3764c40ff0a8ba1f7f2a.zip |
Fixed sorting of table values
Diffstat (limited to 'tests')
-rw-r--r-- | tests/display.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/display.rs b/tests/display.rs index c38355a..ca4fdd8 100644 --- a/tests/display.rs +++ b/tests/display.rs @@ -94,4 +94,10 @@ fn table() { \n\ [[test2]]\n\ test = [[2, 3], [\"foo\", \"bar\"]]\n"); + assert_eq!(Table(map! { + "test" => Array(vec![Integer(2)]), + "test2" => Integer(2) + }).to_string(), + "test = [2]\n\ + test2 = 2\n"); } |