mirror of
https://github.com/git/git.git
synced 2026-03-06 07:19:08 +01:00
Update clar to commit 39f11fe (Merge pull request #131 from pks-gitlab/pks-integer-double-evaluation, 2025-12-05). This commit includes the following changes relevant to Git: - There are now typesafe integer comparison functions. Furthermore, the range of comparison functions has been included to also have relative comparisons, like "greater than". - There is a new `cl_failf()` macro that allows the caller to specify an error message with formatting directives. - The TAP format has been fixed to correctly terminate YAML blocks with "...\n" instead of "---\n". Note that we already had a `cl_failf()` function declared in our own sources. This function is equivalent to the upstreamed function, so we can simply drop it now. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
153 lines
2.8 KiB
Plaintext
153 lines
2.8 KiB
Plaintext
TAP version 13
|
|
# start of suite 1: combined
|
|
not ok 1 - combined::1
|
|
---
|
|
reason: |
|
|
Function call failed: -1
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 2 - combined::2
|
|
---
|
|
reason: |
|
|
Expression is not true: 100 == 101
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 3 - combined::strings
|
|
---
|
|
reason: |
|
|
String mismatch: "mismatched" != actual ("this one fails")
|
|
'mismatched' != 'expected' (at byte 0)
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 4 - combined::strings_with_length
|
|
---
|
|
reason: |
|
|
String mismatch: "exactly" != actual ("this one fails")
|
|
'exa' != 'exp' (at byte 2)
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 5 - combined::int
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: 101 == value
|
|
101 != 100
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 6 - combined::int_note
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: 101 == value
|
|
extra note on failing test
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 7 - combined::int_fmt
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: 022 == value
|
|
0022 != 0144
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 8 - combined::bool
|
|
---
|
|
reason: |
|
|
0 != value
|
|
0 != 1
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 9 - combined::multiline_description
|
|
---
|
|
reason: |
|
|
Function call failed: -1
|
|
description line 1
|
|
description line 2
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 10 - combined::null_string
|
|
---
|
|
reason: |
|
|
String mismatch: "expected" != actual ("this one fails")
|
|
'expected' != NULL
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 11 - combined::failf
|
|
---
|
|
reason: |
|
|
Test failed.
|
|
some reason: foo
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 12 - combined::compare_i
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: two < 1
|
|
2 >= 1
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 13 - combined::compare_i_with_format
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: two < 1
|
|
foo: bar
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 14 - combined::compare_u
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: two < 1
|
|
2 >= 1
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
not ok 15 - combined::compare_u_with_format
|
|
---
|
|
reason: |
|
|
Expected comparison to hold: two < 1
|
|
foo: bar
|
|
at:
|
|
file: 'file'
|
|
line: 42
|
|
function: 'func'
|
|
...
|
|
1..15
|