forked from AbleScript/ablescript
fixed comments and naming
This commit is contained in:
parent
152c5c0f88
commit
f335302b2a
|
@ -416,7 +416,7 @@ impl<'source> Parser<'source> {
|
||||||
Ok(r)
|
Ok(r)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Parse If flow
|
/// Parse Unless flow
|
||||||
///
|
///
|
||||||
/// Consists of condition and block, there is no else
|
/// Consists of condition and block, there is no else
|
||||||
fn unless_flow(&mut self) -> Result<Stmt, Error> {
|
fn unless_flow(&mut self) -> Result<Stmt, Error> {
|
||||||
|
@ -673,7 +673,7 @@ mod tests {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn if_flow() {
|
fn unless_flow() {
|
||||||
let code = "unless (never + never) { /*Buy Able products!*/ print; }";
|
let code = "unless (never + never) { /*Buy Able products!*/ print; }";
|
||||||
let expected = &[Spanned {
|
let expected = &[Spanned {
|
||||||
item: Stmt::Unless {
|
item: Stmt::Unless {
|
||||||
|
|
Loading…
Reference in a new issue