|
37 | 37 | @test !is_point(M, [1, 1, 1]) # checksize fails
|
38 | 38 | @test_throws DomainError is_point(M, [-1, 1, 1], true) # checksize errors
|
39 | 39 | @test_throws DomainError is_point(M, [-1, 1, 1]; error = :error) # checksize errors
|
40 |
| - cs = "DomainError with (3,)\nsize [-1, 1, 1] not (2,)" |
| 40 | + cs = "DomainError with (3,):\nsize [-1, 1, 1] not (2,)" |
41 | 41 | @test_logs (:info, cs) is_point(M, [-1, 1, 1]; error = :info)
|
42 | 42 | @test_logs (:warn, cs) is_point(M, [-1, 1, 1]; error = :warn)
|
43 | 43 | @test is_point(M, [1, 1])
|
44 | 44 | @test is_point(M, [1, 1]; error = :error)
|
45 | 45 | @test_throws DomainError is_point(M, [-1, 1], true)
|
46 | 46 | @test_throws DomainError is_point(M, [-1, 1]; error = :error)
|
47 |
| - ps = "DomainError with [-1, 1]\n<0" |
| 47 | + ps = "DomainError with [-1, 1]:\n<0" |
48 | 48 | @test_logs (:info, ps) is_point(M, [-1, 1]; error = :info)
|
49 | 49 | @test_logs (:warn, ps) is_point(M, [-1, 1]; error = :warn)
|
50 | 50 |
|
|
54 | 54 | @test !is_vector(M, [1, 1], [1, 1, 1])
|
55 | 55 | @test_throws DomainError is_vector(M, [1, 1], [-1, 1, 1], false, true)
|
56 | 56 | @test_throws DomainError is_vector(M, [1, 1], [-1, 1, 1]; error = :error)
|
57 |
| - vs = "DomainError with (3,)\nsize [-1, 1, 1] not (2,)" |
| 57 | + vs = "DomainError with (3,):\nsize [-1, 1, 1] not (2,)" |
58 | 58 | @test_logs (:info, vs) is_vector(M, [1, 1], [-1, 1, 1]; error = :info)
|
59 | 59 | @test_logs (:warn, vs) is_vector(M, [1, 1], [-1, 1, 1]; error = :warn)
|
60 | 60 | @test !is_vector(M, [1, 1, 1], [1, 1, 1], false)
|
61 | 61 | @test_throws DomainError is_vector(M, [1, 1, 1], [1, 1], true, true)
|
62 | 62 | @test_throws DomainError is_vector(M, [1, 1, 1], [1, 1], true; error = :error)
|
63 |
| - ps2 = "DomainError with (3,)\nsize [1, 1, 1] not (2,)" |
| 63 | + ps2 = "DomainError with (3,):\nsize [1, 1, 1] not (2,)" |
64 | 64 | @test_logs (:info, ps2) is_vector(M, [1, 1, 1], [1, 1], true; error = :info)
|
65 | 65 | @test_logs (:warn, ps2) is_vector(M, [1, 1, 1], [1, 1], true; error = :warn)
|
66 | 66 | @test is_vector(M, [1, 1], [1, 1])
|
67 | 67 | @test is_vector(M, [1, 1], [1, 1]; error = :none)
|
68 | 68 | @test_throws DomainError is_vector(M, [1, 1], [-1, 1]; error = :error)
|
69 | 69 | @test_throws DomainError is_vector(M, [1, 1], [-1, 1], true; error = :error)
|
70 |
| - ps3 = "DomainError with [-1, 1]\n<0" |
| 70 | + ps3 = "DomainError with [-1, 1]:\n<0" |
71 | 71 | @test_logs (:info, ps3) is_vector(M, [1, 1], [-1, 1], true; error = :info)
|
72 | 72 | @test_logs (:warn, ps3) is_vector(M, [1, 1], [-1, 1], true; error = :warn)
|
73 | 73 | end
|
0 commit comments