nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vim autocomplete: rename `write_to_stream` to `write_doc` with more arguments
[nit.git]
/
tests
/
test_sqlite3_nity.nit
diff --git
a/tests/test_sqlite3_nity.nit
b/tests/test_sqlite3_nity.nit
index
02f238a
..
ea09f8c
100644
(file)
--- a/
tests/test_sqlite3_nity.nit
+++ b/
tests/test_sqlite3_nity.nit
@@
-15,11
+15,10
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
-module test_sqlite3_nity
-
import sqlite3
var path = "test_nity.db"
import sqlite3
var path = "test_nity.db"
+#alt1#path = "/../invalid_path.db"
if path.file_exists then path.file_delete
var db = new Sqlite3DB.open(path)
if path.file_exists then path.file_delete
var db = new Sqlite3DB.open(path)
@@
-37,6
+36,10
@@
assert db.insert("INTO users VALUES('Guillaume', 'xxx', 1, 88.8)") else
print db.error or else "no error?"
end
print db.error or else "no error?"
end
+#alt2#assert db.insert("INTO notable VALUES('Alexis', 'asdf', 2, 99.9)") else
+#alt2# print db.error or else "no error?"
+#alt2#end
+
for row in db.select("* FROM users") do
print "####"
for row in db.select("* FROM users") do
print "####"