summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.xtend
diff options
context:
space:
mode:
authorMatth?us G. Chajdas <dev@anteru.net>2019-11-10 13:56:53 +0100
committerMatth?us G. Chajdas <dev@anteru.net>2019-11-10 13:56:53 +0100
commit1dd3124a9770e11b6684e5dd1e6bc15a0aa3bc67 (patch)
tree87a171383266dd1f64196589af081bc2f8e497c3 /tests/examplefiles/example.xtend
parentf1c080e184dc1bbc36eaa7cd729ff3a499de568a (diff)
downloadpygments-master.tar.gz
Remove all files, redirect to GitHub.HEADmaster
Diffstat (limited to 'tests/examplefiles/example.xtend')
-rw-r--r--tests/examplefiles/example.xtend34
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/examplefiles/example.xtend b/tests/examplefiles/example.xtend
deleted file mode 100644
index f6a51f7a..00000000
--- a/tests/examplefiles/example.xtend
+++ /dev/null
@@ -1,34 +0,0 @@
-package beer
-
-import static extension beer.BottleSupport.*
-import org.junit.Test
-
-class BottleSong {
-
- @Test
- def void singIt() {
- println(singTheSong(99))
- }
-
- def singTheSong(int all) '''
- «FOR i : all .. 1»
- «i.Bottles» of beer on the wall, «i.bottles» of beer.
- Take one down and pass it around, «(i - 1).bottles» of beer on the wall.
-
- «ENDFOR»
- No more bottles of beer on the wall, no more bottles of beer.
- Go to the store and buy some more, «all.bottles» of beer on the wall.
- '''
-
- def private java.lang.String bottles(int i) {
- switch i {
- case 0 : 'no more bottles'
- case 1 : 'one bottle'
- default : '''«i» bottles'''
- }.toString
- }
-
- def String Bottles(int i) {
- bottles(i).toFirstUpper
- }
-} \ No newline at end of file