mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 16:31:10 +00:00
Reduce use of the prelude in tests (#5683)
Remove use of i32/bool when a builtin type or test-define class type can work. Make `Sub` user-defines in a test that is testing builtin functions and not trying to test the prelude, in the same way that it defines its own Negate. Reduce use of the + operator when it isn't contributing to the test's coverage, since the + operator needs the full prelude. Remove use of Core.Print when it's not required for the test. Move `deduce_nested_facet_value.carbon` to its own file since it uses TypeAnd, and the rest of deduce.carbon does not, but uses i32. This means they can each use a different min-prelude. --------- Co-authored-by: Jon Ross-Perkins <jperkins@google.com>
This commit is contained in:
1 parent
fd0f62f980
commit
19d59b2a8d
15 files changed
+769
-1680
No files matched your search
+302
-417
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user