diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-04 04:28:42 +0100 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-04 04:28:42 +0100 |
commit | c24a8e688a6312764254beac2b2520bb0c5e998d (patch) | |
tree | 7df23711566b358047301d8413ee399105546e8b /amend/tests/003-lex-command | |
parent | auto import from //depot/cupcake/@135843 (diff) | |
download | android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar.gz android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar.bz2 android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar.lz android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar.xz android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.tar.zst android_bootable_recovery-c24a8e688a6312764254beac2b2520bb0c5e998d.zip |
Diffstat (limited to 'amend/tests/003-lex-command')
-rw-r--r-- | amend/tests/003-lex-command/expected.txt | 13 | ||||
-rw-r--r-- | amend/tests/003-lex-command/info.txt | 1 | ||||
-rw-r--r-- | amend/tests/003-lex-command/input | 6 | ||||
-rw-r--r-- | amend/tests/003-lex-command/input2 | 1 | ||||
-rw-r--r-- | amend/tests/003-lex-command/input3 | 1 | ||||
-rw-r--r-- | amend/tests/003-lex-command/input4 | 1 | ||||
-rw-r--r-- | amend/tests/003-lex-command/run | 20 |
7 files changed, 43 insertions, 0 deletions
diff --git a/amend/tests/003-lex-command/expected.txt b/amend/tests/003-lex-command/expected.txt new file mode 100644 index 000000000..e40db0c7c --- /dev/null +++ b/amend/tests/003-lex-command/expected.txt @@ -0,0 +1,13 @@ + IDENTIFIER<this_identifier_is_not_assert> EOL + IDENTIFIER<NEITHER_IS_THIS_123> EOL + IDENTIFIER<but_the_next_one_is> EOL + IDENTIFIER<assert> EOL + IDENTIFIER<next_one_is_not_an_identifier> EOL +line 6: unexpected character at '1' + EOF +line 1: unexpected character at '"' + EOF +line 1: unexpected character at '=' + EOF +line 1: unexpected character at '9' + EOF diff --git a/amend/tests/003-lex-command/info.txt b/amend/tests/003-lex-command/info.txt new file mode 100644 index 000000000..929664855 --- /dev/null +++ b/amend/tests/003-lex-command/info.txt @@ -0,0 +1 @@ +Test to make sure that simple command names are tokenized properly. diff --git a/amend/tests/003-lex-command/input b/amend/tests/003-lex-command/input new file mode 100644 index 000000000..b9ef231b0 --- /dev/null +++ b/amend/tests/003-lex-command/input @@ -0,0 +1,6 @@ +this_identifier_is_not_assert +NEITHER_IS_THIS_123 +but_the_next_one_is +assert +next_one_is_not_an_identifier +12not_an_identifier diff --git a/amend/tests/003-lex-command/input2 b/amend/tests/003-lex-command/input2 new file mode 100644 index 000000000..eb5daf761 --- /dev/null +++ b/amend/tests/003-lex-command/input2 @@ -0,0 +1 @@ +"quoted" diff --git a/amend/tests/003-lex-command/input3 b/amend/tests/003-lex-command/input3 new file mode 100644 index 000000000..f1c873878 --- /dev/null +++ b/amend/tests/003-lex-command/input3 @@ -0,0 +1 @@ +== diff --git a/amend/tests/003-lex-command/input4 b/amend/tests/003-lex-command/input4 new file mode 100644 index 000000000..3ad5abd03 --- /dev/null +++ b/amend/tests/003-lex-command/input4 @@ -0,0 +1 @@ +99 diff --git a/amend/tests/003-lex-command/run b/amend/tests/003-lex-command/run new file mode 100644 index 000000000..2e21fab03 --- /dev/null +++ b/amend/tests/003-lex-command/run @@ -0,0 +1,20 @@ +#!/bin/bash +# +# Copyright (C) 2007 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +amend --debug-lex input +amend --debug-lex input2 +amend --debug-lex input3 +amend --debug-lex input4 |