Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
epidemian
GitHub Repository: epidemian/gravity
Path: blob/master/test/expression/math/equality_expression.gravity
1214 views
#unittest {
	name: "Equality expression (==,!=) with multiple subnodes, testing operator execution order.";
	error: NONE;
	result: true
};

func main() {
	var a = 2;
	var b = 2;
	var c = 0;
	return a == b != c;		// should be like	(a==b)!=c	-> (1)!=0	-> 1,
							// not like			a==(b!=c)	-> 2==(1)	-> 0
}