"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/checks/printf.fish" between
fish-3.5.0.tar.xz and fish-3.5.1.tar.xz

About: fish is a smart and user-friendly interactive command line shell.

printf.fish  (fish-3.5.0.tar.xz):printf.fish  (fish-3.5.1.tar.xz)
skipping to change at line 98 skipping to change at line 98
printf printf
echo $status echo $status
# CHECK: 2 # CHECK: 2
# Verify numeric conversion still happens even if it couldn't be fully converted # Verify numeric conversion still happens even if it couldn't be fully converted
printf '%d\n' 15.1 printf '%d\n' 15.1
# CHECK: 15 # CHECK: 15
# CHECKERR: 15.1: value not completely converted (can't convert '.1') # CHECKERR: 15.1: value not completely converted (can't convert '.1')
echo $status echo $status
# CHECK: 1 # CHECK: 1
printf '%d\n' 07
# CHECK: 7
echo $status
# CHECK: 0
printf '%d\n' 08
# CHECK: 0
# CHECKERR: 08: value not completely converted (can't convert '8')
# CHECKERR: Hint: a leading '0' without an 'x' indicates an octal number
echo $status
# CHECK: 1
printf '%d\n' 0f
# CHECK: 0
# CHECKERR: 0f: value not completely converted (can't convert 'f')
# CHECKERR: Hint: a leading '0' without an 'x' indicates an octal number
echo $status
# CHECK: 1
printf '%d\n' 0g
# CHECK: 0
# CHECKERR: 0g: value not completely converted (can't convert 'g')
echo $status
# CHECK: 1
 End of changes. 1 change blocks. 
0 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)