From 9246538869445e6c0d6ec66b339c30f0838d22a4 Mon Sep 17 00:00:00 2001 From: David Bradford Date: Tue, 8 Apr 2014 11:22:34 -0400 Subject: [PATCH 1/2] completed some test fix exercises --- topics/about_asserts.js | 6 +++--- topics/about_operators.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/topics/about_asserts.js b/topics/about_asserts.js index baf7fc75..a2146770 100644 --- a/topics/about_asserts.js +++ b/topics/about_asserts.js @@ -2,13 +2,13 @@ module("About Asserts (topics/about_asserts.js)"); test("ok", function() { - ok(__ === true, 'what will satisfy the ok assertion?'); + ok(true === true, 'what will satisfy the ok assertion?'); }); test("not ok", function() { - ok(__ === false, 'what is a false value?'); + ok(false === false, 'what is a false value?'); }); test("equal", function() { - equal(__, 1 + 1, 'what will satisfy the equal assertion?'); + equal(2, 1 + 1, 'what will satisfy the equal assertion?'); }); diff --git a/topics/about_operators.js b/topics/about_operators.js index 9859900b..2539dd14 100644 --- a/topics/about_operators.js +++ b/topics/about_operators.js @@ -7,7 +7,7 @@ test("addition", function() { for (var i = 0; i <= 5; i++) { result = result + i; } - equal(__, result, "What is the value of result?"); + equal(15, result, "What is the value of result?"); }); test("assignment addition", function() { From aea7761673ed3018920703b7debe7effa45e7ec2 Mon Sep 17 00:00:00 2001 From: David Bradford Date: Wed, 12 Nov 2014 09:17:54 -0500 Subject: [PATCH 2/2] add git-pre-commit --- git-pre-commit | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 git-pre-commit diff --git a/git-pre-commit b/git-pre-commit new file mode 100644 index 00000000..5dafa9f5 --- /dev/null +++ b/git-pre-commit @@ -0,0 +1,19 @@ +#!/usr/bin/bash +# +# purpose: script to run prior to git commit + +VERSION=1.0 + +function ask() +{ + echo -n "$@" '(y/[N]) ' ; read ans