Skip to content

Instantly share code, notes, and snippets.

@rotoshine
Created October 13, 2012 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rotoshine/3885547 to your computer and use it in GitHub Desktop.
Save rotoshine/3885547 to your computer and use it in GitHub Desktop.
Calculator.add test
$(document).ready(function(){
test("add 함수 테스트", function(){
ok(Calcurator.hasOwnProperty("add"), "add 함수 존재");
equal(Calcurator.add(1, 2), 3, "add 함수에 1과 2를 더한 결과는 3");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment