Navigation Menu

Skip to content

Commit

Permalink
grn_pat: add a command test for #415
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Oct 16, 2015
1 parent fa267ff commit f22255c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/command/suite/issues/issue_415.expected
@@ -0,0 +1,17 @@
table_create pat TABLE_PAT_KEY Int64
[[0,0.0,0.0],true]
load --table pat
[
{"_key": 0},
{"_key": 1}
]
[[0,0.0,0.0],2]
delete pat --key 1
[[0,0.0,0.0],true]
load --table pat
[
{"_key": 3}
]
[[0,0.0,0.0],1]
select pat
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","Int64"]],[1,0],[3,3]]]]
16 changes: 16 additions & 0 deletions test/command/suite/issues/issue_415.test
@@ -0,0 +1,16 @@
table_create pat TABLE_PAT_KEY Int64

load --table pat
[
{"_key": 0},
{"_key": 1}
]

delete pat --key 1

load --table pat
[
{"_key": 3}
]

select pat

0 comments on commit f22255c

Please sign in to comment.