Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added makefile with test target for ros_reader

Added the first test and code for ros_reader
Updated .gitignore to ignore beam files
  • Loading branch information...
commit c3b06208cc840338c947c453c3ff4b48fac31341 1 parent 19da81d
authored February 19, 2012
1  .gitignore
... ...
@@ -1,2 +1,3 @@
  1
+*.beam
1 2
 *~
2 3
 #*#
7  One/Solution/Makefile
... ...
@@ -0,0 +1,7 @@
  1
+all:
  2
+	erlc -o ebin/ src/*.erl test/*.erl
  3
+
  4
+.PHONY: test
  5
+
  6
+test:
  7
+	erl -pa ebin/ -eval 'eunit:test(ros_reader,[verbose]).'
7  One/Solution/src/ros_reader.erl
... ...
@@ -0,0 +1,7 @@
  1
+-module(ros_reader).
  2
+-export([read_file/1]).
  3
+
  4
+-spec(read_file(string()) -> {ok,term()}).
  5
+read_file(File) ->
  6
+    file:read_file(File).
  7
+
0  One/Solution/test/january-good-2011.ros
No changes.
7  One/Solution/test/ros_reader_tests.erl
... ...
@@ -0,0 +1,7 @@
  1
+-module(ros_reader_tests).
  2
+-include_lib("eunit/include/eunit.hrl").
  3
+
  4
+ros_reads_file_test() ->
  5
+    File = "./test/january-good-2011.ros",
  6
+    ?assertMatch({ok,Result},ros_reader:read_file(File)).
  7
+    

0 notes on commit c3b0620

Please sign in to comment.
Something went wrong with that request. Please try again.