summaryrefslogtreecommitdiff
path: root/jstests/tool
diff options
context:
space:
mode:
authoragirbal <antoine@10gen.com>2011-07-05 10:14:37 -0700
committeragirbal <antoine@10gen.com>2011-07-05 10:15:33 -0700
commit087c23c6ffa2f2201bd0e0b573f1856a6f58f54b (patch)
tree4f7c9d0b9d2571002a79e41dd8564f80521822c7 /jstests/tool
parent8113df798dbca9766a7b781fb7282842272cfc87 (diff)
downloadmongo-087c23c6ffa2f2201bd0e0b573f1856a6f58f54b.tar.gz
SERVER-854: fix tsv1.js to use float numbers
Diffstat (limited to 'jstests/tool')
-rw-r--r--jstests/tool/data/a.tsv2
-rw-r--r--jstests/tool/tsv1.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/tool/data/a.tsv b/jstests/tool/data/a.tsv
index 1e094179a63..9964a359b94 100644
--- a/jstests/tool/data/a.tsv
+++ b/jstests/tool/data/a.tsv
@@ -1,2 +1,2 @@
a b c d e
- 1 foobar 5 -6
+ 1.1 foobar 5.1 -6.1
diff --git a/jstests/tool/tsv1.js b/jstests/tool/tsv1.js
index 1b0ddbb7c9e..f590ae6018d 100644
--- a/jstests/tool/tsv1.js
+++ b/jstests/tool/tsv1.js
@@ -4,7 +4,7 @@ t = new ToolTest( "tsv1" )
c = t.startDB( "foo" );
-base = { a : "", b : 1 , c : "foobar" , d: 5, e: -6 };
+base = { a : "", b : 1.1 , c : "foobar" , d: 5.1, e: -6.1 };
t.runTool( "import" , "--file" , "jstests/tool/data/a.tsv" , "-d" , t.baseName , "-c" , "foo" , "--type" , "tsv" , "-f" , "a,b,c,d,e" );
assert.soon( "2 == c.count()" , "restore 2" );