aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-02-21 09:31:19 -0600
committerGitHub <noreply@github.com>2017-02-21 09:31:19 -0600
commit3b7494cf501c6e18b249977c7f0d56654c5e381c (patch)
treeb790a14f736dccab35df88a45007b5a9943193c2 /tests
parentb02e9b9a4a0a074f1de6f3b954caafafd3b3c325 (diff)
parent2e71aaf8f63887ac07bb3764c40ff0a8ba1f7f2a (diff)
downloadmilf-rs-3b7494cf501c6e18b249977c7f0d56654c5e381c.tar.gz
milf-rs-3b7494cf501c6e18b249977c7f0d56654c5e381c.zip
Merge pull request #151 from EPashkin/fix_table_values_sorting
Fixed sorting of table values
Diffstat (limited to 'tests')
-rw-r--r--tests/display.rs6
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");
}