Closed ee7 closed 4 months ago
Add some more tests for augmented assignment operators, and remove some existing ones that had similar coverage.
assignops.c4m was similar to basic10.c4m:
assignops.c4m
basic10.c4m
https://github.com/crashappsec/libcon4m/blob/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0/tests/basic10.c4m#L1-L15
The grammar specifies the augmented assignment operators here:
https://github.com/crashappsec/libcon4m/blob/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0/doc/reference.md#L443-L445
Note that commit https://github.com/crashappsec/libcon4m/commit/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0 changed the behavior of the /= operator so that:
/=
Refs: https://github.com/crashappsec/libcon4m/issues/55 Refs: https://github.com/crashappsec/libcon4m/issues/57 Refs: https://github.com/crashappsec/libcon4m/issues/71
Add some more tests for augmented assignment operators, and remove some existing ones that had similar coverage.
assignops.c4m
was similar tobasic10.c4m
:https://github.com/crashappsec/libcon4m/blob/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0/tests/basic10.c4m#L1-L15
The grammar specifies the augmented assignment operators here:
https://github.com/crashappsec/libcon4m/blob/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0/doc/reference.md#L443-L445
Note that commit https://github.com/crashappsec/libcon4m/commit/b4fdc8e2e70b0ef18a554562702e2db1e0c9aff0 changed the behavior of the
/=
operator so that:Refs: https://github.com/crashappsec/libcon4m/issues/55 Refs: https://github.com/crashappsec/libcon4m/issues/57 Refs: https://github.com/crashappsec/libcon4m/issues/71