Skip to content

Commit

Permalink
Use -q flag in new REPL integration tests to avoid dealing with
Browse files Browse the repository at this point in the history
different version numbers
  • Loading branch information
bugarela committed Sep 9, 2024
1 parent c641178 commit c2d27e6
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions quint/io-cli-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -1226,19 +1226,17 @@ echo 'q::debug("value:", { foo: 42, bar: "Hello, World!" })' | quint | tail -n +
<!-- !test in repl works after name error -->

```
echo -e 'inexisting_name\n1 + 1' | quint
echo -e 'inexisting_name\n1 + 1' | quint -q
```

<!-- !test out repl works after name error -->
```
Quint REPL 0.21.1
Type ".exit" to exit, or ".help" for more information
>>> static analysis error: error: [QNT404] Name 'inexisting_name' not found
static analysis error: error: [QNT404] Name 'inexisting_name' not found
inexisting_name
^^^^^^^^^^^^^^^
>>> 2
>>>
2
```

### REPL continues to work after conflicting definitions
Expand All @@ -1247,15 +1245,13 @@ Regression for https://github.com/informalsystems/quint/issues/434

<!-- !test in repl works after conflict -->
```
echo -e 'def farenheit(celsius) = celsius * 9 / 5 + 32\ndef farenheit(celsius) = celsius * 9 / 5 + 32\nfarenheit(1)' | quint
echo -e 'def farenheit(celsius) = celsius * 9 / 5 + 32\ndef farenheit(celsius) = celsius * 9 / 5 + 32\nfarenheit(1)' | quint -q
```

<!-- !test out repl works after conflict -->
```
Quint REPL 0.21.1
Type ".exit" to exit, or ".help" for more information
>>>
>>> static analysis error: error: [QNT101] Conflicting definitions found for name 'farenheit' in module '__repl__'
static analysis error: error: [QNT101] Conflicting definitions found for name 'farenheit' in module '__repl__'
def farenheit(celsius) = celsius * 9 / 5 + 32
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -1264,41 +1260,39 @@ def farenheit(celsius) = celsius * 9 / 5 + 32
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>> 33
>>>
33
```

### REPL continues to work after type errors

<!-- !test in repl works after type errors -->
```
echo -e 'def foo = 1 + "a"\nfoo\n1 + "a"\n1 + 1' | quint
echo -e 'def foo = 1 + "a"\nfoo\n1 + "a"\n1 + 1' | quint -q
```

<!-- !test out repl works after type errors -->
```
Quint REPL 0.21.1
Type ".exit" to exit, or ".help" for more information
>>> static analysis error: error: [QNT000] Couldn't unify int and str
static analysis error: error: [QNT000] Couldn't unify int and str
Trying to unify int and str
Trying to unify (int, int) => int and (int, str) => _t0
def foo = 1 + "a"
^^^^^^^
>>> static analysis error: error: [QNT404] Name 'foo' not found
static analysis error: error: [QNT404] Name 'foo' not found
foo
^^^
>>> static analysis error: error: [QNT000] Couldn't unify int and str
static analysis error: error: [QNT000] Couldn't unify int and str
Trying to unify int and str
Trying to unify (int, int) => int and (int, str) => _t0
1 + "a"
^^^^^^^
>>> 2
>>>
2
```


Expand Down

0 comments on commit c2d27e6

Please sign in to comment.