7 kyu

Zalgo text reader

606 of 1,140buttonupbub
Description
Loading description...
Regular Expressions
Fundamentals
View
AllIssues4QuestionsSuggestions3Show Resolved
  • Please sign in or sign up to leave a comment.
  • user9644768 Avatar

    Ruby 3.0 should be enabled, read this to learn how to do it

    Please organize the structure of test fixture as following (although it has been mentioned in the attached link, I'm repeated here again)

    describe "<This message should describe the categories of test groups inside this block>" do
      it "<A short message describing this test group>" do
        expect(...).to eq(...) #Assertions
        #Or Test.assert_equals(user_response, reference_response)
      end
    end
    
  • Opabinia Avatar

    Well, the solutions are really cool.

    I'd like to do more Unicode-based kata, as it's important if you want to work in Computational Linguistics

  • Opabinia Avatar

    The error messages are completely terrifying!

    Testing for Q̈̐͋X̧͎̱͍̝̉͛p̬̫ͨ̉ͣ͝G̨̢̠̫͈̣ͣͅ!̧̘̭͐͛̊ͬP̷̲̙í̤̲̻̎X̼̉̽́̚A̸̴̪ͤ̏͜Ś͙ͦ͘H͇̞ͥ͗ͣ͘͢h̡̡͕ͨa̶̰̎̑.̡̗̞̗̘͗̏E̫̬͔̍̒Z̤ͥ̽ͭ .̢̡̥͆͌͛H̳̬͕͋̍̒ͣf̢̗̔A̠̮̬̳͚ͭͥ͟J̲͕̟͈̔́ͭ͘b̴̦̘̯ͧŃ͍̍̓̚̕.̪ͧͮ͌D̮̉̕y̸̭̜̮̖̾j̘̰ͩ̑͝ a̷̵̦͈̜̿e͆̔̒v̫͖̘Ḋͮ́ͨͩ͟͢͝!̱͎͐́Z͉͊̈́͌Ȉ̻ͅh̦̭͛ͮ͊j̼̣̩ͨ?̯̬̘̩̉̈͗̀ṿ̉̌S̥͎ͥC̟̄ͥ͆͐̌v̥͚͕͒̆̌͂̅L̘̙̹̋ͦͦ̎͠ É̜̐ï̶̛̓i̸̱̾ͩe̚͏̛̭̫̜͔D̡͓́̂̂̉̃ͦL̪͎ͪͯͦ͜͞V̶͎̖̐̑̀͠c̡̝̤̥ͦͫ͢͝w̨̳̯̜̰̮͔ͮe̷͚̰ͦd͓͖̞̤ͪ͋̕R̻̺̜̀̀ͪk̡̇́͋b͙͏ͩ̓W͙̋̀͋̈́ͧ̉ͫǎ̯͈͕̤͡ x͓̅ͦͅE̦̣͈ͮͭͤ̓́P̶̨͎͡!͇̂̃ͩ̍̏̌̂p͍͍ͬͪ͝,̸̡͇͎̃ͣs̸̛̝͙̈́̿̃́A̛͎̖͙̲͐͂̕U̹̭̤̔͗?̢̟͡N̪̲͒͝K̮͕̠̙̱ͬͣ͞J̸̟̺̫̞ͪ͟͞u̶̼ͩ͆ͬ̋B̩̰̑̆͠h̤̜̤ͫͦ̈ c̸̼̫̮̍ͫ̄͜n̡̗̥͑̕Ķ̧̭̘̜͑ͧ̚b̹ͭ͛W̑̀͒͊͢L̺̟̘̖̊ͭ́ͭQ͏͉͛ͭ̀̾c͔̦̯̆̒͛͜F̸͉͇́̍ͣ̃͡j͎̟̱̺̽U͙̘̻̗̥͗ͩ͟w͕͌͊f̜̝ͮͫ̔y̿̀̅ͫ͠ .͕̬ͭͦ̕ŗ̺̰̞̈́͌x̴̛̃͜P͚̱ͬ̏t̡̖̘̀a̝̤̩͌̌̓D͆͏̳̖W̧̠̳̘̔c̖͒̚.̻̇͛̓F̽̿͟Ǒ̗̹̾ͨq̒ͣ̽K̯ͪͦH̩͍̬̻͗́͗Y̫̟͔͂͛͑̋ J̐̾̆n̵̡̙̙͔͂̋?͎͍͈̾͛!͇͋͐v͇̞̳͑̽͊̊ͅ.̺̯͖ͬ̆ͅB̻̾̈́͜Z̪̳̳͕̳ͤͮ͜C̲̾̽͂͗ͯĴ̬̙̫͔̤̹͢O̳̥̖͙̥̾͊͢b͌̔̚͞͏Ś̸̠͜I̶͒ͪ̅̿f͈ͭ̆͡͏̥̥̐ k̸̗ͬ̈C̮̦̎͂ͣͮͣ̚ṉ̱ͫ͡m̤̻͊̚p̨̟̗ͫͫ͂ͮT̵̙͙̠̻ͨͦ̕P̒ͭ͏͑͆Ō̡̤͓̗͂͢ͅ!̧̲̼ͪ̑͌̔͝H̹͏͕̾g̙ͣ̉͐̍ů͍̰͐̿̅ỵ̴̌ͥD̨̥͇̊̄ͪz̗̐͏͏͈͓͐?̢̟̤ͬ̕ W̪ͫͥ̎̑l͇̀ͨ̏ͧ̚͞k̨̥̖t̷͖̘ͦͤ͢Z̜̊̽I͎͐̊P͈ͪͬx̶̥̟̱́̈́B̛͚ͬͤͮ!̿̕͡T̴̯̯̯ͮ͛͠͝ l̲̲̞̗ͯͭ͗̋F̥͈̤̀͂̐͘͟F͍̋͌̕͝Z̧̻̅͐͟v̹̠ͥͤ̒q̰̐̈̅ͬͬR͇͊ͩ͠?̙͉̊͘Õ͎ͣŘ̡̮͈͓͚̐͘W͑̓ͧ̂?͔̠̻̠ͤ̀̓R̢͙ͫͤ͜y͙͉͉̽͂ͭ̄T͗ͯ̅ 
    'QXpG!PiXASHha.EZ .HfAJbN.Dyj aevD!ZIhj?vSCvL Eiie͏DLVcwedRkb͏Wa xEP!p,sAU?NKJuBh cnKbWLQ͏cFjUwfy .rxPtaD͏Wc.FOqKHY Jn?!v.BZCJOb͏SIf͏ kCnmpTP͏O!H͏guyDz͏͏? WlktZIPxB!T lFFZvqR?ORW?RyT' should equal 'QXpG!PiXASHha.EZ .HfAJbN.Dyj aevD!ZIhj?vSCvL EiieDLVcwedRkbWa xEP!p,sAU?NKJuBh cnKbWLQcFjUwfy .rxPtaDWc.FOqKHY Jn?!v.BZCJObSIf kCnmpTPO!HguyDz? WlktZIPxB!T lFFZvqR?ORW?RyT'
    
  • Unnamed Avatar
    1. So the set of characters to retain has been changed suddenly after 300 kata completions, so many best practices solutions aren't best practices anymore, but they are still there...
    2. The tests should contain different kinds of characters: probably all ASCII, min non-ASCII codepoint, non-ASCII alphabetic...
    • anter69 Avatar
      1. Only the description was updated to say that the instead of A-Za-z0-9.,!? it simply expects ASCII characters. The random tests were not updated, so all the 300 150 existing solutions should work.

      2. You expect too much from a 7 kyu kata, I guess

    • B1ts Avatar

      Up until yesterday, it only had JS version with no random tests, so that pretty much means no tests at all. There were no checks if a character like ':' or any other was present, allowing almost any solution to pass. I wish the author was active, so it would've been his decision to make. It was my understanding that the kata is about extracting printable characters, so limiting it to a smaller subset of characters seemed weird. I don't think there's much harm done here...

      With that said, I do agree with #2.

    • Unnamed Avatar

      Even if it wasn't tested, most people followed the description. In either case, the tests should match the description because with the current description most of the solution voted as best practices are incorrect.

    • B1ts Avatar

      Do you suggest to revert this change?

    • Unnamed Avatar

      I'm not sure. The change isn't ideal, but that specific character set was a bit strange in this context in the first place as well.

  • anter69 Avatar

    Ruby translation kumited, including slightly modified description -- please check and approve (note: author is inactive)

  • rowcased Avatar

    Interesting idea for a kata. Because it's solvable without actually needing to know anything about Zalgo explicitly (news to me), I suggest you challenge the solver upfront to NOT follow the links. This will make it more fun for some of the newer coders, and if they can't hack it, they can always fall back on the links.

  • B1ts Avatar

    basic punctuation marks (. , ! ?), and spaces ().

    Other characters aren't being tested. Either description needs to change to include all punctuation, or more thorough tests with special characters must be added.

  • Puck Avatar

    Snakey Snake Python translation.

    🐍

    Please review and approve.

  • Blind4Basics Avatar

    needs random tests

    (interesting concept, btw, thx)

    Note: might be good to not rely on the external links, about the description.