update tests

This commit is contained in:
microproofs 2024-03-07 09:46:41 -05:00 committed by Kasey
parent ae396c0224
commit 275db2fd11
2 changed files with 4 additions and 2 deletions

View File

@ -1322,6 +1322,8 @@ impl<'a> CodeGenerator<'a> {
msg_func: Option<AirMsg>, msg_func: Option<AirMsg>,
) -> AirTree { ) -> AirTree {
assert!(tipo.get_generic().is_none()); assert!(tipo.get_generic().is_none());
// Shouldn't be needed but still here just in case
// this function is called from anywhere else besides assignment
let tipo = &convert_opaque_type(tipo, &self.data_types, true); let tipo = &convert_opaque_type(tipo, &self.data_types, true);
if tipo.is_primitive() { if tipo.is_primitive() {

View File

@ -10,8 +10,8 @@ description: "Code:\n\ntype Either<left, right> {\n Left(left)\n Right(rig
"$ref": "#/definitions/test_module~1Either$ByteArray_test_module~1Interval$Int" "$ref": "#/definitions/test_module~1Either$ByteArray_test_module~1Interval$Int"
} }
}, },
"compiledCode": "59018201000032323232323232323232232253330064a22930a99803a4811856616c696461746f722072657475726e65642066616c7365001365632325323330073001002132533300c001153300900416132533300d300f002149854cc02801458c94cccccc04000454cc0280145854cc0280145854cc0280145854cc028014584dd7000980680098028020a99919804180080189929998068008a998050028b0992999807180800109924c64a666016600a002264a6660200022a6601a0102c264a66602260260042930a998070048b19299999980a0008a998070048b0a998070048b0a998070048b09bad001153300e00916301100130090021533300b30040011533300f3009002149854cc03001c5854cc03001c58c02400454cc02c01858c038004c018014dc3a40042a660100062c6e1d2000300400249012a72656465656d65723a204569746865723c4279746541727261792c20496e74657276616c3c496e743e3e00230063754002460086ea80055cd2b9c5573aaae7955cfaba15744ae901", "compiledCode": "59018201000032323232323232323232232253330064a22930a99803a4811856616c696461746f722072657475726e65642066616c73650013656323253330063370e900000089929998058008a998040018b099299980618070010a4c2a660120082c64a66666601e0022a660120082c2a660120082c2a660120082c2a660120082c26eb8004c030004c01000c54ccc018cdc3a4004002264a6660160022a660100062c264a666018601c0042649319299980499b87480000044c94ccc03800454cc02c018584c94ccc03cc044008526153300c00716325333333012001153300c00716153300c00716153300c007161375a0022a6601800e2c601e002600e0042a66601266e1d20020011533300d3007002149854cc0280145854cc02801458c01c00454cc02401058c030004c01000c54cc01c00858c0100092412a72656465656d65723a204569746865723c4279746541727261792c20496e74657276616c3c496e743e3e00230063754002460086ea80055cd2b9c5573aaae7955cfaba15744ae901",
"hash": "87903885b9ea1cbfcc5a9dc9d7a0e9f071a7673451233e9177fa7d1f", "hash": "9832573170b2d30efa7f52dbdc96e82948f331228573cd2a00288006",
"definitions": { "definitions": {
"ByteArray": { "ByteArray": {
"dataType": "bytes" "dataType": "bytes"