null+****@clear*****
null+****@clear*****
2011年 11月 13日 (日) 16:23:23 JST
Kouhei Sutou 2011-11-13 07:23:23 +0000 (Sun, 13 Nov 2011)
New Revision: 40586c5881bb71e45e202437b74c41b0f7e22840
Log:
[test][gqtp] use name instead of integer.
Modified files:
test/unit/gqtp/test-load.rb
Modified: test/unit/gqtp/test-load.rb (+16 -16)
===================================================================
--- test/unit/gqtp/test-load.rb 2011-11-13 07:23:01 +0000 (dff9c4b)
+++ test/unit/gqtp/test-load.rb 2011-11-13 07:23:23 +0000 (7b4d95a)
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2009 Ryo Onodera <onode****@clear*****>
-# Copyright (C) 2010 Kouhei Sutou <kou****@clear*****>
+# Copyright (C) 2010-2011 Kouhei Sutou <kou****@clear*****>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -34,7 +34,7 @@ class LoadTest < Test::Unit::TestCase
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","ShortText"]],[2,"bash"],[1,"gcc"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 1 ShortText
+table_create commands TABLE_PAT_KEY ShortText
load --table commands
[
["_key"],
@@ -53,8 +53,8 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","ShortText"],["body","ShortText"]],[2,"bash","a shell"],[1,"gcc","a compiler"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 1 ShortText
-column_create commands body 0 ShortText
+table_create commands TABLE_PAT_KEY ShortText
+column_create commands body COLUMN_SCALAR ShortText
load --table commands
[
["_key","body"],
@@ -74,9 +74,9 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","ShortText"],["location","ShortText"],["body","ShortText"]],[2,"bash","/bin/bash","a shell"],[1,"gcc","/usr/bin/gcc","a compiler"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 1 ShortText
-column_create commands body 0 ShortText
-column_create commands location 0 ShortText
+table_create commands TABLE_PAT_KEY ShortText
+column_create commands body COLUMN_SCALAR ShortText
+column_create commands location COLUMN_SCALAR ShortText
load --table commands
[
["_key","body","location"],
@@ -96,9 +96,9 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["_key","ShortText"],["location","ShortText"],["body","ShortText"]],[2,"bash","/bin/bash","a shell"],[1,"gcc","/usr/bin/gcc","a compiler"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 1 ShortText
-column_create commands body 0 ShortText
-column_create commands location 0 ShortText
+table_create commands TABLE_PAT_KEY ShortText
+column_create commands body COLUMN_SCALAR ShortText
+column_create commands location COLUMN_SCALAR ShortText
load --table commands
[
["body","location","_key"],
@@ -116,7 +116,7 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"]],[1],[2]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 3
+table_create commands TABLE_NO_KEY
load --table commands
[
[],
@@ -135,8 +135,8 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["body","ShortText"]],[1,\"a compiler\"],[2,\"a shell\"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 3
-column_create commands body 0 ShortText
+table_create commands TABLE_NO_KEY
+column_create commands body COLUMN_SCALAR ShortText
load --table commands
[
["body"],
@@ -156,9 +156,9 @@ COMMANDS
[[0,0.0,0.0],[[[2],[["_id","UInt32"],["location","ShortText"],["body","ShortText"]],[1,"/usr/bin/gcc","a compiler"],[2,"/bin/bash","a shell"]]]]
[[0,0.0,0.0],true]
EXPECTED
-table_create commands 3
-column_create commands body 0 ShortText
-column_create commands location 0 ShortText
+table_create commands TABLE_NO_KEY
+column_create commands body COLUMN_SCALAR ShortText
+column_create commands location COLUMN_SCALAR ShortText
load --table commands
[
["body","location"],