Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

.autotest

  • Loading branch information...
commit fa3cf81141a86d66bb2de1eab7bdb41529b639f6 1 parent ed694e6
@kirel authored
Showing with 14 additions and 1 deletion.
  1. +12 −0 .autotest
  2. +1 −1  symbol.rb
  3. +1 −0  symbols.yaml
View
12 .autotest
@@ -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
2  symbol.rb
@@ -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
1  symbols.yaml
@@ -45,6 +45,7 @@
- \S
- \dag
- \pounds
+
# Table 4: AMS Commands Defined to Work in Both Math and Text Mode
- package: amssymb
bothmodes:
Please sign in to comment.
Something went wrong with that request. Please try again.