'%s' tests on bonus 'space' flag #7
-
Hi! I'm currently doing the project (new pdf) and using the tester, but I've faced a problem with bonus part2. According to man BSD, the 'space' flag has no effect on 's' conversions, however the tester does expect them. I'm doing bonus2 only, as the new pdf allows me to manage it partially, so I will not implement field width, '0', '.' and '-'. I'd like to ask if the tester is not correctly updated or is it related to Moulinette and the '% 1s' conversion? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hello, For the s conversion, can you post a link to that man, or send a screen of it ? On every man I look at, the space flag has no conversion specified (example : http://transit.iut2.upmf-grenoble.fr/cgi-bin/man/man2html?3+printf : "(a space) A blank should be left before a positive number (or empty string) produced by a signed conversion."). For the mix with '0', '.' and '-' flags, yes the tester is not totally updated and won't be, so you'll have to manage with it. Good luck ! |
Beta Was this translation helpful? Give feedback.
-
You are right :) The space flag didn't have much sense anyway with a string. You can do a pull request to remove the useless tests if you want, or just ignore them. But you will still have false KOs on bonus flags + space width management, the tester is not maintained anymore. |
Beta Was this translation helpful? Give feedback.
You are right :) The space flag didn't have much sense anyway with a string. You can do a pull request to remove the useless tests if you want, or just ignore them. But you will still have false KOs on bonus flags + space width management, the tester is not maintained anymore.