Skip to content

Commit

Permalink
Tests for new compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 11, 2014
1 parent 631bf63 commit 7051d3a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/tests/keywords/switch-value-error2
@@ -0,0 +1,33 @@
#
# PRE: switch-value-error
#
# The same as "switch-value-error", but the attribute
# is hidden inside of an xlat expansion. We now turn
# simple attribute xlats into templates.
#
switch "%{Service-Type}" {
case "%{expr: 1 + 2}" {
update reply {
Filter-Id := "3"
}
}

case Login-User {
update reply {
Filter-Id := "Login-User"
}
}

case No-Such-Value { # ERROR
update reply {
Filter-Id := "FAILED"
}
}

case {
update reply {
Filter-Id := "default"
}
}

}

0 comments on commit 7051d3a

Please sign in to comment.