Mercurial Hosting > luan
comparison core/src/luan/impl/Parser.java @ 271:82a3ebcfbafa
add internal tests
git-svn-id: https://luan-java.googlecode.com/svn/trunk@272 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 31 Oct 2014 04:27:50 +0000 |
parents | 3dcb0f9bee82 |
children | 859c0dedc8b6 |
comparison
equal
deleted
inserted
replaced
270:b2c20fdcf42a | 271:82a3ebcfbafa |
---|---|
139 return false; | 139 return false; |
140 i(1); | 140 i(1); |
141 return true; | 141 return true; |
142 } | 142 } |
143 | 143 |
144 public boolean test(char c) { | |
145 return !endOfInput() && text.charAt(i()) == c; | |
146 } | |
147 | |
144 public boolean test(String s) { | 148 public boolean test(String s) { |
145 return text.regionMatches(i(),s,0,s.length()); | 149 return text.regionMatches(i(),s,0,s.length()); |
146 } | 150 } |
147 | 151 |
148 public String textFrom(int start) { | 152 public String textFrom(int start) { |