From cf49a11263c4d48720250db0c448b97dbec3d8b9 Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 6 Jan 2019 23:01:33 +0100 Subject: Sort ranges in type inference tests Also rename the files to remove the numbers (they don't serve a purpose now that there are only the data files). --- crates/ra_hir/src/ty/tests/data/boolean_op.txt | 31 ++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 crates/ra_hir/src/ty/tests/data/boolean_op.txt (limited to 'crates/ra_hir/src/ty/tests/data/boolean_op.txt') diff --git a/crates/ra_hir/src/ty/tests/data/boolean_op.txt b/crates/ra_hir/src/ty/tests/data/boolean_op.txt new file mode 100644 index 000000000..cce8d68fb --- /dev/null +++ b/crates/ra_hir/src/ty/tests/data/boolean_op.txt @@ -0,0 +1,31 @@ +[6; 7) 'x': [unknown] +[22; 34) '{ 0i32 }': i32 +[28; 32) '0i32': i32 +[46; 237) '{ ... < 3 }': bool +[56; 57) 'x': bool +[60; 61) 'a': bool +[60; 66) 'a && b': bool +[65; 66) 'b': bool +[76; 77) 'y': bool +[80; 84) 'true': bool +[80; 93) 'true || false': bool +[88; 93) 'false': bool +[103; 104) 'z': bool +[107; 108) 'x': bool +[107; 113) 'x == y': bool +[112; 113) 'y': bool +[123; 124) 'h': bool +[127; 134) 'CONST_1': [unknown] +[127; 145) 'CONST_...ONST_2': bool +[138; 145) 'CONST_2': [unknown] +[155; 156) 'c': [unknown] +[159; 172) 'f(z || y) + 5': [unknown] +[182; 183) 'd': [unknown] +[186; 187) 'b': [unknown] +[197; 198) 'e': bool +[201; 205) '3i32': bool +[201; 222) '3i32 &...world"': bool +[209; 222) '"hello world"': bool +[229; 231) '10': [unknown] +[229; 235) '10 < 3': bool +[234; 235) '3': [unknown] -- cgit v1.2.3