Permalink
Browse files

.autotest

  • Loading branch information...
kirel committed Jul 11, 2009
1 parent ed694e6 commit fa3cf81141a86d66bb2de1eab7bdb41529b639f6
Showing with 14 additions and 1 deletion.
  1. +12 −0 .autotest
  2. +1 −1 symbol.rb
  3. +1 −0 symbols.yaml
View
@@ -0,0 +1,12 @@
+Autotest.add_hook(:initialize) {|at|
+ at.add_exception %r{^\.git} # ignore Version Control System
+ at.add_exception %r{^./tmp} # ignore temp files, lest autotest will run again, and again...
+ # at.clear_mappings # take out the default (test/test*rb)
+ at.add_mapping(%r%^([^/]*)\.rb$%) { |_, m|
+ ["spec/#{m[1]}_spec.rb"]
+ }
+ at.add_mapping(%r{^.*\.yaml$}) {
+ at.files_matching(/^.*symbol_spec.rb$/)
+ }
+ nil
+}
View
@@ -7,7 +7,7 @@ class Symbol
attr_reader *A
attr_reader :id
-
+
def initialize args = {}
raise ArgumentError.new('You need at least a command for a LaTeX symbol.') unless args[:command]
# defauls
View
@@ -45,6 +45,7 @@
- \S
- \dag
- \pounds
+
# Table 4: AMS Commands Defined to Work in Both Math and Text Mode
- package: amssymb
bothmodes:

0 comments on commit fa3cf81

Please sign in to comment.