From 1ff83c504b029cc15db42d78f6c004473b19f76c Mon Sep 17 00:00:00 2001 From: "Curt J. Sampson" Date: Sun, 21 Oct 2012 16:20:38 +0900 Subject: [PATCH] Start a test framework. --- yohei-cjs/Test | 3 +++ yohei-cjs/expected1 | 1 + yohei-cjs/translate | 3 +++ 3 files changed, 7 insertions(+) create mode 100755 yohei-cjs/Test create mode 100644 yohei-cjs/expected1 create mode 100755 yohei-cjs/translate diff --git a/yohei-cjs/Test b/yohei-cjs/Test new file mode 100755 index 0000000..91792be --- /dev/null +++ b/yohei-cjs/Test @@ -0,0 +1,3 @@ +#!/bin/bash + +./translate "2010-01-01" | diff -u expected1 - diff --git a/yohei-cjs/expected1 b/yohei-cjs/expected1 new file mode 100644 index 0000000..18832d3 --- /dev/null +++ b/yohei-cjs/expected1 @@ -0,0 +1 @@ +Hello. diff --git a/yohei-cjs/translate b/yohei-cjs/translate new file mode 100755 index 0000000..b2b077b --- /dev/null +++ b/yohei-cjs/translate @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby + +p(ARGV)