Skip to content

Commit

Permalink
Merge pull request #184 from sparkprime/too_many_params_errors
Browse files Browse the repository at this point in the history
Add tests
  • Loading branch information
sparkprime committed May 18, 2016
2 parents 2731134 + 1ae338c commit 670a4b8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test_suite/error.function_too_many_args.jsonnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
Copyright 2015 Google Inc. All rights reserved.
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.
*/

local foo(a, b) = [a, b];

foo(3, 4, 5)

2 changes: 2 additions & 0 deletions test_suite/error.function_too_many_args.jsonnet.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUNTIME ERROR: Too many args, function has 2 parameter(s)
error.function_too_many_args.jsonnet:19:1-12

0 comments on commit 670a4b8

Please sign in to comment.