aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/vlib/v/fmt/tests/consts_input.vv
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/vlib/v/fmt/tests/consts_input.vv')
-rw-r--r--v_windows/v/old/vlib/v/fmt/tests/consts_input.vv54
1 files changed, 54 insertions, 0 deletions
diff --git a/v_windows/v/old/vlib/v/fmt/tests/consts_input.vv b/v_windows/v/old/vlib/v/fmt/tests/consts_input.vv
new file mode 100644
index 0000000..e16942a
--- /dev/null
+++ b/v_windows/v/old/vlib/v/fmt/tests/consts_input.vv
@@ -0,0 +1,54 @@
+const (
+// pi
+// pi
+pi=3.14
+// phi
+// phi
+// phi
+phi=1.618
+ //Euler's constant
+eulers=2.7182
+supported_platforms = ['windows', 'macos', 'linux', 'freebsd', 'openbsd',
+ 'netbsd', 'dragonfly', 'android', 'js', 'solaris', 'haiku']
+one_line_supported = ['windows', 'macos', 'linux', 'freebsd', 'openbsd', 'netbsd', 'dragonfly', 'android', 'js', 'solaris', 'haiku']
+another_const = ['a', 'b'
+ 'c', 'd', 'e'
+ 'f'
+ ]
+multiline_const = [
+ 'first line', 'second line','third line',
+ 'fourth line']
+)
+
+const (
+ i_am_a_very_long_constant_name_so_i_stand_alone_and_my_length_is_over_90_characters = ['testforit']
+)
+
+pub const (
+i_am_pub_const=true
+)
+
+fn main() {
+ a := [
+ [3,
+5,
+ 6],[7, 9, 2]]
+b := [[
+[2,
+5,8],[ 5, 1,
+3],[ 2, 6, 0]],[
+[9,
+4,5],[
+7,2,3],
+[1,
+2,3]]]
+c := [
+[
+[2,
+5,8],[ 5, 1,
+3],[ 2, 6, 0]],[[
+9,
+4,5],[7,2,3],
+[1,
+2,3]]]
+}