aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/constants
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-04-07 00:37:01 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-04-10 20:08:22 +0800
commitf03695731b9b36cd4014620b7b63556a69b4e952 (patch)
tree7e9ef254705fc96cf53d625ca0aad9f43cddc87d /test/libsolidity/syntaxTests/constants
parent2bc4ec31e2526abac57ac2864fa5c4bc4a7cd3a1 (diff)
downloaddexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.gz
dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.tar.zst
dexon-solidity-f03695731b9b36cd4014620b7b63556a69b4e952.zip
Add source locations to syntax test expectations.
Diffstat (limited to 'test/libsolidity/syntaxTests/constants')
-rw-r--r--test/libsolidity/syntaxTests/constants/cyclic_dependency_1.sol2
-rw-r--r--test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol6
-rw-r--r--test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol8
3 files changed, 8 insertions, 8 deletions
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_1.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_1.sol
index 2b6aa088..cb553fbe 100644
--- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_1.sol
+++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_1.sol
@@ -2,4 +2,4 @@ contract C {
uint constant a = a;
}
// ----
-// TypeError: The value of the constant a has a cyclic dependency via a.
+// TypeError: (17-36): The value of the constant a has a cyclic dependency via a.
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol
index 461979f8..00f9bb0f 100644
--- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol
+++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_2.sol
@@ -5,6 +5,6 @@ contract C {
uint constant d = 2 + a;
}
// ----
-// TypeError: The value of the constant a has a cyclic dependency via c.
-// TypeError: The value of the constant c has a cyclic dependency via d.
-// TypeError: The value of the constant d has a cyclic dependency via a.
+// TypeError: (17-40): The value of the constant a has a cyclic dependency via c.
+// TypeError: (71-111): The value of the constant c has a cyclic dependency via d.
+// TypeError: (117-140): The value of the constant d has a cyclic dependency via a.
diff --git a/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol b/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol
index f63be05e..969ed50d 100644
--- a/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol
+++ b/test/libsolidity/syntaxTests/constants/cyclic_dependency_3.sol
@@ -5,7 +5,7 @@ contract C {
uint constant c = b;
}
// ----
-// TypeError: The value of the constant x has a cyclic dependency via a.
-// TypeError: The value of the constant a has a cyclic dependency via b.
-// TypeError: The value of the constant b has a cyclic dependency via c.
-// TypeError: The value of the constant c has a cyclic dependency via b.
+// TypeError: (17-36): The value of the constant x has a cyclic dependency via a.
+// TypeError: (42-65): The value of the constant a has a cyclic dependency via b.
+// TypeError: (71-90): The value of the constant b has a cyclic dependency via c.
+// TypeError: (96-115): The value of the constant c has a cyclic dependency via b.