synvert-core 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab495ff09805562a46b2d6aefe872af0a6970b7759e89a4dc5b2d682bb291698
|
4
|
+
data.tar.gz: aefd9db248d21de0f84f437e5657b13750302060f4226eec6d24649ee8d63bb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3627ac9446c98f8b37915ba2a62909000bb378ecba1630864f1876bc9549cc67d96217a6787554ad7a8671d482f402576b3943183c8e575e3dfd4791feaeea22
|
7
|
+
data.tar.gz: 80febc0c3ee86be36bfb81f19a4fad61d390d1b971d8d4895fa23e7ce07b3cdfa599276f5a82a155fa52047fdc9a2139b02354d6e3152dc57085579831ab8aaa
|
data/lib/synvert/core/version.rb
CHANGED
@@ -139,6 +139,19 @@ module Synvert::Core::NodeQuery
|
|
139
139
|
assert_tokens source, expected_tokens
|
140
140
|
end
|
141
141
|
|
142
|
+
it 'identifier can contain ?' do
|
143
|
+
source = '.send[message=empty?]'
|
144
|
+
expected_tokens = [
|
145
|
+
[:tNODE_TYPE, "send"],
|
146
|
+
[:tOPEN_ATTRIBUTE, "["],
|
147
|
+
[:tKEY, "message"],
|
148
|
+
[:tEQUAL, "="],
|
149
|
+
[:tIDENTIFIER_VALUE, "empty?"],
|
150
|
+
[:tCLOSE_ATTRIBUTE, "]"]
|
151
|
+
]
|
152
|
+
assert_tokens source, expected_tokens
|
153
|
+
end
|
154
|
+
|
142
155
|
it 'matches attribute value' do
|
143
156
|
source = '.pair[key={{value}}]'
|
144
157
|
expected_tokens = [
|