Skip to content
This repository
Browse code

Add test files that crash E.

  • Loading branch information...
commit 2fb25498888933fe1aafe8f76e72c72cbe52f340 1 parent c342bcf
Adam Vandenberg authored October 23, 2009
6  testfiles/crashers/_readme.txt
... ...
@@ -0,0 +1,6 @@
  1
+fs162:
  2
+	- Place the cursor at the beginning of the text
  3
+	- Enter a double-quote (")
  4
+	
  5
+fs381:
  6
+	- Crashes on opening file
1  testfiles/crashers/fs162-crash.rb
... ...
@@ -0,0 +1 @@
  1
+# => [["xxxxxxxxxx", "xxx.xxx"], ["xxxxx.xxxxxxx", "xxxxxxxxxx.xxx"], ["xx", "xxxxxxxxxxxxx.xx"], ["xxxxxxxxxx", "xxx.xxx"], ["xxxxxxxxxxxxx", "xxx.xxx"], ["xxxxxx", "xxx.xxx"], ["xxxxxxxxx", "xxx.xxx"], ["xxxxxx-xxxxxx", "xxx.xxx"], ["xxxxxxxxxxxxxxx", "xxx.xxx"], ["xxxxxxxx", "xxx.xxx"], ["xxxxx", "xxx.xxx"], ["xxxxx.xxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxx.xxxxxx.xxxxxx", "xxxxxxxxxxx.xx"], ["xxxxx.xxxxxx", "xxxxx.xx"], ["xxxxxxx", "xxxxx.xx"], ["xxxxxxxxxx.xxxx", "xxxxx.xx"], ["xxxxxxx", "xxxxx.xx"], ["xxxxx.xxxxxxxx", "xxxxx.xx"], ["xxxxxxxxxxx", "xxxxx.xx"], ["xxxxx-xxxxx.xxxxxxx", "xxxxxxx.xx"], ["xxxxxxx.xxxxxxx", "xxxxxxxxx.xx"], ["xxxxxxx", "xxxxxxxxxxx.xx"], ["x.xxxxxx", "xxxxxxxxx.xxx"], ["xxxxxx.xxxxx", "xxxxxx.xx"], ["xxxxxx.xxxxx", "xxxxxxxx.xxx"], ["xxxxxxx.xxxxxxx", "xxx.xx"], ["xxxxxx.xxxxxx", "xxxxxxxx.xx"], ["xxxx", "xxxxxxxxxx.xx"], ["xxxx.xxxxxxx", "xxxxxxx.xx"], ["xxxxx.x", "xxxxxxx.xx"], ["xxxx.xxxx", "xxxxxxx.xx"], ["xxxxxxxx", "xxxxxxx.xx"], ["xxx", "xxxxxxx-xxxxxx.xx"], ["xxxxxxx.xxxxxxxx", "xxxxxxxx.xx"], ["xxxxxxxx", "xxxxx.xxx"], ["xxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxx", "xxx.xx"], ["xxxxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xxx"], ["xxxxxx.xxxxxxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxxxx", "xxx.xx"], ["xxxxx.xxx", "xxx.xx"], ["xxxxxx.xxxxx", "xxx.xx"], ["xxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxxxxxx", "xxx.xx"], ["xxxxx-xxx", "xxx.xx"], ["xxxxxx.xxxxxx", "xxx.xx"], ["xxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxx.xxxxxxx", "xxx.xx"], ["x.xxxxxxxx", "xxx.xx"], ["xx.xxxxxxxx", "xxx.xx"], ["xxxxxx.xxxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xx"], ["xxxxx.xxx", "xxx.xx"], ["xxxxxxx.xxxxxxxxxx", "xxxxxxxxxx.xxx"], ["xxxxxx", "xxxxxx.xxx"], ["xxxx", "xxx.xxxxx.xxx"], ["xxxx", "xxxxxxxxxx.xx"], ["xxxx", "xxxxxxxxxxx-xxxxxxx.xx"], ["xxxxxxxxxxx", "xxxxxxx.xxx"], ["xxxxxxxxxxxx", "xxxxxxx.xxx"], ["xxxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxx.xxxxx", "xxxxxx.xxx"], ["xxxx", "xxxxxxxxxxxxxxxx.xx"], ["xxxx", "xxxxx-xxx-xxxxxxxxxx.xx"], ["xxxxxxx", "xxxxxx.xx"], ["xxxx", "xxxxxxxx-xxxxxx.xx"], ["xxxx", "xxxxxx-xxxx.xx"], ["xxxxxxxxxxxxxx", "xxx.xxx"], ["xxxxxxxx", "xxxxxx-xxxxxx.xx"], ["xxxx.xxxxxxx", "xxx-xxxxxxxx.xxx"], ["xxxxxx", "xxxxxxxx.xxx"], ["xxxxxxxxxxx", "xxxxxxxx.xx"], ["xxxxxxx.xxxxxxx", "xxx.xx"], ["xxxxx.xxxxxxx", "xxxxxx.xx"], ["x.xxxxxx", "xxxxxx.xx"], ["xxxxxxxxxxxx", "xxxxxx.xx"], ["xxxxxxxxxxxxxx", "xxxxxxxxxx.xx"], ["x.xxxxxxxxxxx", "xxxxxxxxx.xxx"], ["xxxxxx-xxxxxxxxx", "xxx-xxxxxx.xx"], ["xxxxxx.xxxxx", "xx-xxxxxx.xx"], ["xxxxxxx", "xxxxxx.xx"], ["xxxx", "xxxxxxxxxxxxx.xx"], ["x.xxxxxxxxxxxxxx", "xxxxx-xxxxxxxxxx.xx"], ["xxxxx.xxxxxxxxx", "xxxxxxxxx-xxxxxxx.xx"], ["xxxxxxxxx.xxxxxxxxx", "xxxx.xx.xx"], ["xxxx.xxxxxxxxxx", "xxxxxxxx-xxxxxxxxxxx.xx"], ["xxxxx", "xxxxxxxxxxxxx.xx"], ["xxxxx.xxxxxxxxx", "x-xxxxxx.xx"], ["xxxxxx.xxxxx", "x-xxxxxx.xx"], ["xxxx.xxxxxxxxx", "x-xxxxxx.xx"], ["xxxx-", "x-xxxxxx.xx"], ["xx.xxxxxx", "x-xxxxxx.xx"], ["xxxxxx", "x-xxxxxx.xx"], ["xxxxxx.xxxxxxxxx", "x-xxxxxx.xx"], ["xxxxxx.xxxxxxx", "x-xxxxxx.xx"], ["xxxxxx.xxxxxxxxx", "x-xxxxxx.xx"], ["xxxxxxxxxxx.xxxxxxx", "x-xxxxxx.xx"], ["xxxxxxxxx-xxxxxxxx", "x-xxxxxx.xx"], ["xxxxxxx", "xx-xxxxxx.xx"], ["xxxxxxx.xxxxx", "xxxx.xxx"], ["xx-xxxxxx", "xxxxxxxxx.xx"], ["xxxxxx", "xxxxxx.xx"], ["xxxxxxx-x", "xxxxxxxx.xx"], ["xxx", "xxxxxxx.xx"], ["xxxxxxxx.x", "xx-xxx.xx"], ["xxxx-xxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xx.xxxx", "xxx.xx"], ["xxxxxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxxxxx", "xxx.xx"], ["xxxxxxxx-xxxxx.xxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxxxx", "xxx.xx"], ["xxxxxx", "xxx.xx"], ["xxxxxx", "xxx.xx"], ["xxxxxxxxxxx", "xxx.xx"], ["xxxxxx-xxxxxxx", "xxx.xx"], ["xxxxxx.xxxxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xx"], ["xxxxxx", "xxx.xx"], ["xxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxx", "xxx.xx"], ["xxxxxxxx", "xxx.xx"], ["xxxxxxxxxxxx", "xxx.xx"], ["xxx-xxxxx", "xxx.xx"], ["xxxxxxx", "xxx.xx"], ["xxxxxxxxxxxxx", "xxx.xx"], ["xxxxxxxxxx", "xxx.xx"], ["xxxxxxx", "xxxxx.xx"], ["x.xxxxxxxxx", "xxxxxx-xxxxxxx.xxx"], ["xxxxxx", "xxxxxxxxxxx.xx"]]
4  testfiles/crashers/fs381-crash.rb
... ...
@@ -0,0 +1,4 @@
  1
+def products_sold_totals_in_timeframe(start_date, end_date)
  2
+@products_sold_totals_in_timeframe = Salon.find_by_sql ["SELECT Count(transaction_items.saleable_item_id) AS sold_quantity, saleable_items.price AS price, Sum(transaction_items.quantity*transaction_items.price) AS product_revenue, Sum(transaction_items.quantity*transaction_items.price)-(Sum((transaction_items.quantity*transaction_items.price)/(1+transactions.sales_tax/100))) AS sales_tax, Sum(transaction_items.quantity*transaction_items.cost) AS product_cost, Sum(transaction_items.quantity*transaction_items.price*(1-(transactions.stylist_product_percentage/100))) AS paid_commission, IFNULL(Sum(transaction_items.quantity*transaction_items.price*(transactions.stylist_product_percentage/100))-(Sum(transaction_items.quantity*transaction_items.cost)+Sum(transaction_items.quantity*transaction_items.price)-(Sum((transaction_items.quantity*transaction_items.price)/(1+transactions.sales_tax/100)))),0) AS product_profit FROM salons Inner Join transactions ON salons.id = transactions.salon_id Inner Join transaction_items ON transactions.id = transaction_items.transaction_id Inner Join saleable_items ON transaction_items.saleable_item_id = saleable_items.id Inner Join inventories ON saleable_items.id = inventories.saleable_item_id AND salons.id = inventories.salon_id WHERE (transactions.created_at BETWEEN ? AND ?) AND (transactions.product_total > '0') AND (transaction_items.item_type = 'standard') AND (transactions.salon_id = ?) GROUP BY salons.id", start_date.utc, end_date.utc, self.id]
  3
+return @products_sold_totals_in_timeframe
  4
+end
3  testfiles/readme.txt
... ...
@@ -1 +1,4 @@
1 1
 These folders contain files for (manually) testing e builds.
  2
+
  3
+* crashers
  4
+  This folder contains text files that crash E.

0 notes on commit 2fb2549

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