# File A1_patterns.rb, line 109 def test_zerlege string = "d:=0;\nwhile x>=y do\nd:=(d div 123);\nx:=(x-y); od" comp = ["d",":=","0",";","while","x","y","do","d",":=","(","d","div","123",")",";","x",":=","(","x","-","y",")",";","od"] assert_equal(comp,zerlege(string)) end