summaryrefslogtreecommitdiffstats
path: root/test/literal2.tcl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:16:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 05:16:43 +0000
commitfd8f22aa0eaf2a7726a6db288946cd904388ac4e (patch)
tree483f8cace8e3e64c9df42cef34c474bd225209ab /test/literal2.tcl
parentAdding upstream version 3.45.3. (diff)
downloadsqlite3-fd8f22aa0eaf2a7726a6db288946cd904388ac4e.tar.xz
sqlite3-fd8f22aa0eaf2a7726a6db288946cd904388ac4e.zip
Adding upstream version 3.46.0.upstream/3.46.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/literal2.tcl')
-rw-r--r--test/literal2.tcl40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/literal2.tcl b/test/literal2.tcl
new file mode 100644
index 0000000..e14a035
--- /dev/null
+++ b/test/literal2.tcl
@@ -0,0 +1,40 @@
+# 2018 May 19
+#
+# The author disclaims copyright to this source code. In place of
+# a legal notice, here is a blessing:
+#
+# May you do good and not evil.
+# May you find forgiveness for yourself and forgive others.
+# May you share freely, never taking more than you give.
+#
+#***********************************************************************
+#
+
+source [file join [file dirname $argv0] pg_common.tcl]
+
+#=========================================================================
+
+
+start_test literal2 "2024 Jan 23"
+
+execsql_test 1.0 { SELECT 123_456 }
+errorsql_test 1.1 { SELECT 123__456 }
+
+execsql_float_test 2.1 { SELECT 1.0e1_2 }
+
+
+execsql_test 3.0.0 { SELECT 0xFF_FF }
+execsql_test 3.0.1 { SELECT 0xFF_EF }
+errorsql_test 3.0.2 { SELECT 0xFF__EF }
+# errorsql_test 3.0.3 { SELECT 0x_FFEF }
+errorsql_test 3.0.4 { SELECT 0xFFEF_ }
+
+execsql_test 3.1.0 { SELECT 0XFF_FF }
+execsql_test 3.1.1 { SELECT 0XFF_EF }
+errorsql_test 3.1.2 { SELECT 0XFF__EF }
+# errorsql_test 3.1.3 { SELECT 0X_FFEF }
+errorsql_test 3.1.4 { SELECT 0XFFEF_ }
+
+finish_test
+
+