From 020294fca9a7065d4b9cf4e677f606ebaaa29b00 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 13 Apr 2024 10:39:45 +0200 Subject: Better test runner (#3922) --- tests/typ/compute/version.typ | 47 ------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 tests/typ/compute/version.typ (limited to 'tests/typ/compute/version.typ') diff --git a/tests/typ/compute/version.typ b/tests/typ/compute/version.typ deleted file mode 100644 index e33eeb6f..00000000 --- a/tests/typ/compute/version.typ +++ /dev/null @@ -1,47 +0,0 @@ -// Test versions. -// Ref: false - ---- -// Test version constructor. - -// Empty. -#version() - -// Plain. -#version(1, 2) - -// Single Array argument. -#version((1, 2)) - -// Mixed arguments. -#version(1, (2, 3), 4, (5, 6), 7) - ---- -// Test equality of different-length versions -#test(version(), version(0)) -#test(version(0), version(0, 0)) -#test(version(1, 2), version(1, 2, 0, 0, 0, 0)) ---- -// Test `version.at`. - -// Non-negative index in bounds -#test(version(1, 2).at(1), 2) - -// Non-negative index out of bounds -#test(version(1, 2).at(4), 0) - -// Negative index in bounds -#test(version(1, 2).at(-2), 1) - -// Error: 2-22 component index out of bounds (index: -3, len: 2) -#version(1, 2).at(-3) - ---- -// Test version fields. -#test(version(1, 2, 3).major, 1) -#test(version(1, 2, 3).minor, 2) -#test(version(1, 2, 3).patch, 3) - ---- -// Test the type of `sys.version` -#test(type(sys.version), version) -- cgit v1.2.3