@@ -79,7 +79,7 @@ private class ReplTester(bindings: Bindings<ExprValue> = Bindings.empty()) {
79
79
80
80
private val repl = Repl (valueFactory, input, output, parser, compiler, bindings, zeroTimer)
81
81
82
- val partiqlVersion = repl.retrievePartiQLVersion ()
82
+ val partiqlVersionAndHash = repl.retrievePartiQLVersionAndHash ()
83
83
84
84
private val actualReplPrompt = StringBuilder ()
85
85
@@ -150,13 +150,13 @@ private class ReplTester(bindings: Bindings<ExprValue> = Bindings.empty()) {
150
150
151
151
@Ignore(" https://github.com/partiql/partiql-lang-kotlin/issues/266" )
152
152
class ReplTest {
153
- private val partiqlVersion = ReplTester ().partiqlVersion
153
+ private val partiqlVersionAndHash = ReplTester ().partiqlVersionAndHash
154
154
155
155
@Test
156
156
fun singleQuery () {
157
157
ReplTester ().assertReplPrompt("""
158
158
#Welcome to the PartiQL REPL!
159
- #Using version: $partiqlVersion
159
+ #Using version: $partiqlVersionAndHash
160
160
#PartiQL> 1+1
161
161
# |
162
162
#==='
@@ -171,7 +171,7 @@ class ReplTest {
171
171
fun querySemiColon () {
172
172
ReplTester ().assertReplPrompt("""
173
173
#Welcome to the PartiQL REPL!
174
- #Using version: $partiqlVersion
174
+ #Using version: $partiqlVersionAndHash
175
175
#PartiQL> 1+1;
176
176
#==='
177
177
#2
@@ -185,7 +185,7 @@ class ReplTest {
185
185
fun multipleQuery () {
186
186
ReplTester ().assertReplPrompt("""
187
187
#Welcome to the PartiQL REPL!
188
- #Using version: $partiqlVersion
188
+ #Using version: $partiqlVersionAndHash
189
189
#PartiQL> 1 + 1
190
190
# |
191
191
#==='
@@ -207,7 +207,7 @@ class ReplTest {
207
207
fun astWithoutMetas () {
208
208
ReplTester ().assertReplPrompt("""
209
209
#Welcome to the PartiQL REPL!
210
- #Using version: $partiqlVersion
210
+ #Using version: $partiqlVersionAndHash
211
211
#PartiQL> 1 + 1
212
212
# | !!
213
213
#==='
@@ -236,7 +236,7 @@ class ReplTest {
236
236
fun addToGlobalEnvAndQuery () {
237
237
ReplTester ().assertReplPrompt("""
238
238
#Welcome to the PartiQL REPL!
239
- #Using version: $partiqlVersion
239
+ #Using version: $partiqlVersionAndHash
240
240
#PartiQL> !add_to_global_env {'myTable': <<{'a':1}, {'a': 2}>>}
241
241
# |
242
242
#==='
@@ -279,7 +279,7 @@ class ReplTest {
279
279
280
280
ReplTester (initialBindings).assertReplPrompt("""
281
281
#Welcome to the PartiQL REPL!
282
- #Using version: $partiqlVersion
282
+ #Using version: $partiqlVersionAndHash
283
283
#PartiQL> !global_env
284
284
# |
285
285
#==='
@@ -300,7 +300,7 @@ class ReplTest {
300
300
fun dumpEmptyInitialEnv () {
301
301
ReplTester ().assertReplPrompt("""
302
302
#Welcome to the PartiQL REPL!
303
- #Using version: $partiqlVersion
303
+ #Using version: $partiqlVersionAndHash
304
304
#PartiQL> !global_env
305
305
# |
306
306
#==='
@@ -315,7 +315,7 @@ class ReplTest {
315
315
fun dumpEnvAfterAltering () {
316
316
ReplTester ().assertReplPrompt("""
317
317
#Welcome to the PartiQL REPL!
318
- #Using version: $partiqlVersion
318
+ #Using version: $partiqlVersionAndHash
319
319
#PartiQL> !add_to_global_env {'myTable': <<{'a':1}, {'a': 2}>>}
320
320
# |
321
321
#==='
@@ -354,7 +354,7 @@ class ReplTest {
354
354
fun listCommands () {
355
355
ReplTester ().assertReplPrompt("""
356
356
#Welcome to the PartiQL REPL!
357
- #Using version: $partiqlVersion
357
+ #Using version: $partiqlVersionAndHash
358
358
#PartiQL> !list_commands
359
359
# |
360
360
#
0 commit comments