mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-06 08:26:55 +00:00
.st file extension for StringTemplate HTML files
Conflicts: lib/linguist/samples.json
This commit is contained in:
committed by
Arfon Smith
parent
cbcbb969d5
commit
bb58840c1c
11
samples/Smalltalk/testSimpleChainMatches.st
Normal file
11
samples/Smalltalk/testSimpleChainMatches.st
Normal file
@@ -0,0 +1,11 @@
|
||||
tests
|
||||
testSimpleChainMatches
|
||||
|e eCtrl |
|
||||
e := self eventKey: $e.
|
||||
eCtrl := self eventKey: $e ctrl: true.
|
||||
|
||||
self assert: (($e ctrl, $e) matches: {eCtrl}).
|
||||
self assert: ($e ctrl matches: {eCtrl. e}).
|
||||
|
||||
self deny: (($e ctrl, $e) matches: {eCtrl. self eventKey: $a}).
|
||||
self deny: ($e ctrl matches: {e}).
|
||||
Reference in New Issue
Block a user