File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ defmodule RegexTest do
1212  if  System . otp_release ( )  >=  "28"  do 
1313    test  "module attribute"  do 
1414      assert  ExUnit.CaptureIO . capture_io ( :stderr ,  fn  -> 
15-         defmodule  ModAttr  do 
16-           @ regex  ~r/ example/  
17-           def  regex ,  do:  @ regex 
15+                 defmodule  ModAttr  do 
16+                   @ regex  ~r/ example/  
17+                   def  regex ,  do:  @ regex 
1818
19-           @ bare_regex  :erlang . term_to_binary ( @ regex ) 
20-           def  bare_regex ,  do:  :erlang . binary_to_term ( @ bare_regex ) 
19+                   @ bare_regex  :erlang . term_to_binary ( @ regex ) 
20+                   def  bare_regex ,  do:  :erlang . binary_to_term ( @ bare_regex ) 
2121
22-           # We don't rewrite outside of functions 
23-           assert  @ regex . re_pattern  ==  :erlang . binary_to_term ( @ bare_regex ) . re_pattern 
24-         end 
22+                   # We don't rewrite outside of functions 
23+                   assert  @ regex . re_pattern  ==  :erlang . binary_to_term ( @ bare_regex ) . re_pattern 
24+                 end 
2525
26-         assert  ModAttr . regex ( ) . re_pattern  !=  ModAttr . bare_regex ( ) . re_pattern 
27-       end )  =~  "storing and reading regexes from module attributes is deprecated" 
26+                 assert  ModAttr . regex ( ) . re_pattern  !=  ModAttr . bare_regex ( ) . re_pattern 
27+               end )  =~  "storing and reading regexes from module attributes is deprecated" 
2828    end 
2929  end 
3030
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments