<commit_before>REBOL [
  Title:   "Generates Red/System float! tests"
	Author:  "<NAME>"
	File: 	 %make-float-auto-test.r
	Version: 0.1.0
	Rights:  "Copyright (C) 2011 <NAME>. All rights reserved."
	License: "BSD-3 - https://github.com/dockimbel/Red/blob/origin/BSD-3-License.txt"
]

;; initialisations 
tests: copy ""                          ;; string to hold generated tests
test-number: 0                          ;; number of the generated test
make-dir %auto-tests/
file-out: %auto-tests/float-auto-test.reds

;; create a block of values to be used in the binary ops tests
test-values: [
            0.0                   
  -2147483648.0                   
   2147483647.0
           -1.0
            3.0
           -7.0
            5.0
       123456.7890
            1.222090944E+33
            9.99999E-45
            7.7E18
]

tol: 1e-4   

;; create blocks of operators to be applied
test-binary-ops: [
  +
  -
  *
  /
  //
 "%"
]

test-comparison-ops: [
  =
  <>
  <
  ><commit_msg>TESTS: disabled floats modulo/remainder tests as they are not fully implemented yet (partially in IA-32 backend, and not at all in ARM backend).<commit_after>REBOL [
  Title:   "Generates Red/System float! tests"
	Author:  "<NAME>"
	File: 	 %make-float-auto-test.r
	Version: 0.1.0
	Rights:  "Copyright (C) 2011 <NAME>. All rights reserved."
	License: "BSD-3 - https://github.com/dockimbel/Red/blob/origin/BSD-3-License.txt"
]

;; initialisations 
tests: copy ""                          ;; string to hold generated tests
test-number: 0                          ;; number of the generated test
make-dir %auto-tests/
file-out: %auto-tests/float-auto-test.reds

;; create a block of values to be used in the binary ops tests
test-values: [
            0.0                   
  -2147483648.0                   
   2147483647.0
           -1.0
            3.0
           -7.0
            5.0
       123456.7890
            1.222090944E+33
            9.99999E-45
            7.7E18
]

tol: 1e-4   

;; create blocks of operators to be applied
test-binary-ops: [
  +
  -
  *
  /
;  //									;; not implemented fully yet
; "%"									;; not implemented fully yet
]

test-comparison-ops: [
  =
  <>
  <
  >
{'fraction_non_alphanumeric': 0.11708428246013668, 'fraction_numerical': 0.07198177676537586, 'mean_word_length': 1.6205250596658711, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6883862', 'n_tokens_mistral': 853, 'n_tokens_neox': 745, 'n_words': 186}