mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-26 22:02:30 +01:00
It was in my mind to add String in order to support libraries in `package`. `print` is added in order to have a String go to stdout. I've tried to do `print` in a way that won't be too hard to add other printable types, but it's probably also somewhat optional here -- that is, if desired, I could remove it. But it was a lot easier to doublecheck `\n` behavior with it, and I suspect it'll be helpful in other tests if it supports more value types. On the side, this also fixes dereferencing in Pattern/Expression Print() calls, which I was noticing printing pointers instead of values. This may be another argument for moving away from passing pointers, since this seems to be a difficult-to-catch error. Co-authored-by: Geoff Romer <gromer@google.com>
110 lines
2.5 KiB
Python
110 lines
2.5 KiB
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
"""Auto-generated list of tests. Run `./tests.py --update_list` to update."""
|
|
|
|
TEST_LIST = [
|
|
"assignment_copy1",
|
|
"assignment_copy2",
|
|
"block1",
|
|
"block2",
|
|
"break1",
|
|
"choice1",
|
|
"continue1",
|
|
"experimental_continuation1",
|
|
"experimental_continuation2",
|
|
"experimental_continuation3",
|
|
"experimental_continuation4",
|
|
"experimental_continuation5",
|
|
"experimental_continuation6",
|
|
"experimental_continuation7",
|
|
"experimental_continuation8",
|
|
"experimental_continuation9",
|
|
"fun1",
|
|
"fun2",
|
|
"fun3",
|
|
"fun4",
|
|
"fun5",
|
|
"fun6_fail_type",
|
|
"fun_named_params",
|
|
"fun_named_params2",
|
|
"fun_recur",
|
|
"funptr1",
|
|
"generic_function1",
|
|
"generic_function2",
|
|
"generic_function3",
|
|
"generic_function_apply",
|
|
"generic_function_fail1",
|
|
"generic_function_fail2",
|
|
"generic_function_fail3",
|
|
"generic_function_swap",
|
|
"generic_function_tuple_map",
|
|
"global_variable1",
|
|
"global_variable2",
|
|
"global_variable3",
|
|
"global_variable4",
|
|
"global_variable5",
|
|
"global_variable6",
|
|
"global_variable7",
|
|
"global_variable8",
|
|
"if_else",
|
|
"if_else_if",
|
|
"if_else_if_else",
|
|
"if_false",
|
|
"if_nesting",
|
|
"if_true",
|
|
"ignored_parameter",
|
|
"invalid_char",
|
|
"match_any_int",
|
|
"match_int",
|
|
"match_int_default",
|
|
"match_placeholder",
|
|
"next",
|
|
"no_match",
|
|
"pattern_init",
|
|
"pattern_variable_fail",
|
|
"placeholder_variable",
|
|
"print1",
|
|
"record1",
|
|
"return_auto",
|
|
"return_empty_explicit",
|
|
"return_empty_explicit_fail",
|
|
"return_empty_implicit1",
|
|
"return_empty_implicit2",
|
|
"return_empty_implicit_fail1",
|
|
"return_empty_implicit_fail2",
|
|
"star",
|
|
"string1",
|
|
"string2",
|
|
"string3",
|
|
"string_fail1",
|
|
"string_fail2",
|
|
"string_fail3",
|
|
"string_fail4",
|
|
"string_fail5",
|
|
"struct1",
|
|
"struct2",
|
|
"struct3",
|
|
"struct_field_access_mismatch",
|
|
"struct_field_mismatch",
|
|
"struct_field_missing",
|
|
"tuple1",
|
|
"tuple2",
|
|
"tuple3",
|
|
"tuple4",
|
|
"tuple5",
|
|
"tuple_assign",
|
|
"tuple_equality",
|
|
"tuple_equality2",
|
|
"tuple_equality3",
|
|
"tuple_match",
|
|
"tuple_match2",
|
|
"tuple_match3",
|
|
"type_compute",
|
|
"type_compute2",
|
|
"type_compute3",
|
|
"while1",
|
|
"zero",
|
|
]
|