Skip to content

Commit 7f8cb75

Browse files
committed
test(golang): the guest's own catalog tests list the four number equality types
The guest crate pins the producible types and each one's operators separately from eql-codegen, so it still listed the eight types from before IntegerEq, BigintEq, RealEq and DoubleEq were produced. Each answers eq through its equality index, as TextEq does. Claude-Session: https://claude.ai/code/session_01BZhkvKLpNtKuzj3HCfMXoL
1 parent 6ddcaf2 commit 7f8cb75

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎languages/golang/encrypt/guest/src/targets.rs‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,17 @@ mod tests {
189189
producible,
190190
[
191191
"Integer",
192+
"IntegerEq",
192193
"Bigint",
194+
"BigintEq",
193195
"Text",
194196
"TextEq",
195197
"TextMatch",
196198
"Boolean",
197199
"Real",
198-
"Double"
200+
"RealEq",
201+
"Double",
202+
"DoubleEq"
199203
],
200204
"the engine's producible types, in catalog order"
201205
);

‎languages/golang/encrypt/guest/tests/native_ops.rs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,13 +1371,17 @@ fn targets_lists_what_the_build_holds() {
13711371
producible,
13721372
[
13731373
"Integer",
1374+
"IntegerEq",
13741375
"Bigint",
1376+
"BigintEq",
13751377
"Text",
13761378
"TextEq",
13771379
"TextMatch",
13781380
"Boolean",
13791381
"Real",
1380-
"Double"
1382+
"RealEq",
1383+
"Double",
1384+
"DoubleEq"
13811385
],
13821386
"the engine's producible types, in catalog order"
13831387
);
@@ -1772,7 +1776,7 @@ fn the_catalog_lists_each_types_operators() {
17721776
assert_eq!(op, want, "{name}");
17731777
};
17741778
match name.as_str() {
1775-
"TextEq" => only([
1779+
"TextEq" | "IntegerEq" | "BigintEq" | "RealEq" | "DoubleEq" => only([
17761780
("operator", "eq"),
17771781
("fidelity", "exact"),
17781782
("arity", "one"),

0 commit comments

Comments
 (0)