Function checkComputeCompare [src]

Creates a new standalone, singular check which allows running simple binary operations on the extracted variables. It will then compare the reduced program with the value of the expected variable.

Prototype

pub fn checkComputeCompare( check_object: *CheckObject, program: []const u8, expected: ComputeCompareExpected, ) void

Parameters

check_object: *CheckObjectprogram: []const u8expected: ComputeCompareExpected

Source

pub fn checkComputeCompare( check_object: *CheckObject, program: []const u8, expected: ComputeCompareExpected, ) void { var check = Check.create(check_object.step.owner.allocator, .compute_compare); check.computeCmp(.{ .string = check_object.step.owner.dupe(program) }, expected); check_object.checks.append(check) catch @panic("OOM"); }