mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
Preserve false in single-expression queries (#145)
Note: 1 = 2 is different from 1 == 2 See issue for details fixes #144 Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
committed by
GitHub
parent
7d32bd9377
commit
8d282f1ffd
@@ -0,0 +1,26 @@
|
||||
# Copyright (c) Microsoft Corporation.
|
||||
# Licensed under the MIT License.
|
||||
cases:
|
||||
- note: single-expression query producing false
|
||||
data: {}
|
||||
modules: []
|
||||
query: 1 == 2
|
||||
want_result: false
|
||||
|
||||
- note: single-expression query producing no results (due to undefined)
|
||||
data: {}
|
||||
modules: []
|
||||
query: 1 = 2
|
||||
no_result: true
|
||||
|
||||
- note: multi-expression query in which one expression is false (1)
|
||||
data: {}
|
||||
modules: []
|
||||
query: "1 == 1; 1 == 2"
|
||||
no_result: true
|
||||
|
||||
- note: multi-expression query in which one expression is false (2)
|
||||
data: {}
|
||||
modules: []
|
||||
query: "1 == 2; 1 == 1"
|
||||
no_result: true
|
||||
Reference in New Issue
Block a user