Jump to content

Talk:Z10324

From Wikifunctions
Latest comment: 1 month ago by TT73 in topic test for empty "" string

Please, update implementation: snake_case can't contain spaces

Snake case is a way of writing phrases without spaces, where spaces are replaced with underscores _, and the words are typically all lower case. It's often stylized as "snake_case" to remind the reader of its appearance.

https://developer.mozilla.org/en-US/docs/Glossary/Snake_case Alexander-Mart-Earth (talk) 13:34, 21 December 2023 (UTC)Reply

New test case needed: «my string» is not a snake_case!

Sources:

Snake case (stylized as snake_case) is the naming convention in which each space is replaced with an underscore (_) character, and words are written in lowercase.

https://en.wikipedia.org/wiki/Snake_case Alexander-Mart-Earth (talk) 13:42, 21 December 2023 (UTC)Reply

With «my_string» result is false, but should be is true

input: my_string output: false

input: my_string_ output: true

input: my_string_string output: true

What? :) Alexander-Mart-Earth (talk) 13:49, 21 December 2023 (UTC)Reply

test for empty "" string

Empty string has no case. So the test for empty string needs to be corrected here. This should return False for empty string. TT73 (talk) 17:50, 28 July 2024 (UTC)Reply