-Code.require_file "../test_helper.exs", __DIR__
+Code.require_file("../test_helper.exs", __DIR__)
 
 defmodule Kernel.BinaryTest do
   use ExUnit.Case, async: true
 
   test "heredoc" do
     assert 7 == __ENV__.line
+
     assert "foo\nbar\n" == """
-foo
-bar
-"""
-
-    assert 13 == __ENV__.line
+           foo
+           bar
+           """
+
+    assert 14 == __ENV__.line
+
     assert "foo\nbar \"\"\"\n" == """
-foo
-bar \"""
-"""
+           foo
+           bar \"""
+           """
   end
 
   test "aligned heredoc" do
     assert "foo\nbar\n" == """
-    foo
-    bar
-    """
+           foo
+           bar
+           """
   end
 
   test "heredoc with interpolation" do
-    assert "29\n" == """
-    #{__ENV__.line}
-    """
-
-    assert "\n34\n" == """
-
-    #{__ENV__.line}
-    """
+    assert "31\n" == """
+           #{__ENV__.line}
+           """
+
+    assert "\n36\n" == """
+
+           #{__ENV__.line}
+           """
   end
 
   test "heredoc in call" do
-    assert "foo\nbar" == Kernel.<>("""
-    foo
-    """, "bar")
+    assert "foo\nbar" ==
+             Kernel.<>(
+               """
+               foo
+               """,
+               "bar"
+             )
   end
 
   test "UTF-8" do

  test "bitsyntax translation" do
    refb = "sample"
    sec_data = "another"
    <<byte_size(refb)::size(1)-big-signed-integer-unit(8),
      refb::binary,
      byte_size(sec_data)::1*16-big-signed-integer,
      sec_data::binary>>
  end

  test "bitsyntax size shortcut" do


  defmacrop signed_16 do
    quote do
      big - signed - integer - unit(16)
    end
  end

  defmacrop refb_spec do
    quote do
      1 * 8 - big - signed - integer
    end
  end

  test "bitsyntax macro" do
    refb = "sample"
    sec_data = "another"

    <<
      byte_size(refb)::refb_spec,
      refb::binary,
      byte_size(sec_data)::size(1)-signed_16,
      sec_data::binary
    >>
  end
end
