-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from JFoederer/List-operator-improvements
List operator improvements
- Loading branch information
Showing
4 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
atest/robotNL tests/Check that/Operators/List-like_operators.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
*** Settings *** | ||
Resource base.resource | ||
|
||
*** Test Cases *** | ||
Basic element checks | ||
@{empty_list}= Create List | ||
Check That ${empty_list} Is Empty | ||
@{animals}= Create List Bird Wolf Fish | ||
Check That @{animals} Contains Wolf | ||
Run Keyword And Expect Error CheckFailed* Check That @{animals} Contains WOLF | ||
Check That @{animals} Contains Item WOLF | ||
Check That @{animals} Does not contain Platypus | ||
Check That @{animals} Does Not Contain Item Platypus | ||
Run Keyword And Expect Error CheckFailed* Check That @{animals} Does Not Contain Item WOLF | ||
|
||
Contains exactly the items from | ||
@{animals}= Create List Bird Wolf Fish | ||
Check that ${animals} Contains Exactly The Items From Bird Wolf Fish | ||
Check that ${animals} Contains Exactly The Items From Wolf Fish Bird | ||
Check that ${animals} Contains Exactly The Items From ${animals} | ||
Check that ${animals} Contains Exactly The Items From @{animals} | ||
Check that @{animals} Contains Exactly The Items From @{animals} | ||
Check that @{animals} Contains Exactly The Items From ${animals} | ||
@{short_list}= Create List Single element | ||
Check that ${short_list} Contains Exactly The Items From Single element | ||
@{empty_list}= Create List | ||
Check That ${empty_list} Contains Exactly The Items From ${empty_list} | ||
Check that Item1 Item2 Contains Exactly The Items From Item2 Item1 | ||
Run Keyword And Expect Error CheckFailed* Check that ${animals} Contains Exactly The Items From Bird Wolf | ||
Run Keyword And Expect Error CheckFailed* Check that ${animals} Contains Exactly The Items From Bird Wolf Fish Extra | ||
Run Keyword And Expect Error CheckFailed* Check that ${animals} Contains Exactly The Items From ${short_list} | ||
Run Keyword And Expect Error CheckFailed* Check that ${short_list} Contains Exactly The Items From @{animals} | ||
Run Keyword And Expect Error CheckFailed* Check that ${empty_list} Contains Exactly The Items From Extra | ||
Run Keyword And Expect Error CheckFailed* Check that Item1 Item2 Contains Exactly The Items From ${empty_list} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "robotframework-nl" | ||
version = "2.2.0" | ||
version = "2.2.1" | ||
description = "robotnl is a proving ground to boost Robot framework closer to Natural Language." | ||
readme = "README.md" | ||
authors = [{ name = "Johan Foederer", email = "[email protected]" }] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
VERSION = '2.2.0' | ||
VERSION = '2.2.1' |