# Test multiline expressions in if-statements with non matching indentation class IfSpaceAgnostic def main is shared a=99 b=99 if (a > 98 and b == 99 ) # matching indent - otherwise OK assert true, 'OK - 0' else, assert false, 'fail' if (a > 98 and b == 99 ) assert true, 'OK - 1 indent' else assert false, 'fail' if (a > 98 and b == 99 ) assert true, 'OK - 2 indents' else assert false, 'fail' if (a > 98 and b == 99 ) assert true, 'OK - 4 indents' else assert false, 'fail' if (a > 98 and b == 99 ), assert true, 'OK - 2' #.no-warnings. else, assert false, 'fail' /# # TODO: fix this if (a > 98 and b == 99 ), assert true, 'OK - 2' else, assert true, 'fail' #/ # pathological back indentation if (a > 98 and b == 99 ) assert true, 'OK - 1 DEDENT)' else assert false, 'fail' if b==99 or a==99 assert true, 'normal' if b==99 or a==99, assert true, 'normal'