Last active
August 13, 2022 15:57
-
-
Save henryhamon/4d697a1254ec20655d147b75d9cc26e1 to your computer and use it in GitHub Desktop.
CodeGolf.OrderOfWords
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class codeGolf.OrderOfWords | |
{ | |
ClassMethod Order(a As %String) As %String | |
{ | |
; your code here | |
Q "" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class codeGolf.test.OrderOfWords Extends %UnitTest.TestCase | |
{ | |
Method TestBasic() | |
{ | |
Do $$$AssertTrue(##class(codeGolf.OrderOfWords).Order("is2 Thi1s T4est 3a", "This is a Test")) | |
Do $$$AssertTrue(##class(codeGolf.OrderOfWords).Order("4of Fo1r pe6ople g3ood th5e the2", "For the good of the people")) | |
Do $$$AssertTrue(##class(codeGolf.OrderOfWords).Order("", "")) | |
Do $$$AssertTrue(##class(codeGolf.OrderOfWords).Order("52voluptatem q50ui u2t e33nim ist6e q36uia o5mnis ill21o conse46quuntur Nem32o inven22tore 40aut eo49s S1ed mag47ni vol37uptas vit28ae qu45ia nat7us u4nde 25quasi volupta35tem be27atae 34ipsam aspern39atur s30unt perspiciat3is ex31plicabo. 42aut 20ab se53qui od41it ips18a e24t aper16iam, fugit43, s44ed s38it 13laudantium, r15em nes54ciunt? dict29a 11accusantium tot14am archit26ecto eaq17ue 51ratione ver23itatis e8rror qu19ae dol12oremque s9it voluptate10m dolore48s", "Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt?")) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment