Sha256: 14edfd55b26e85d7dffc48c3eefda2fdc0b90865f80d5ed094187196cbaf3bcc

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

require 'spec_helper'

describe TranslationUnit do
	let(:tu) { Index.new.parse_translation_unit fixture_path("a.c")  }

	it "returns a list of diagnostics" do
		diags = tu.diagnostics
		diags.should be_kind_of(Array)
		diags.should_not be_empty
	end

	it "returns a list of diagnostics from an unsaved file" do
		file = UnsavedFile.new("a.c", File.read(fixture_path("a.c")))
		tu = Index.new.parse_translation_unit("a.c", nil,[file])
		diags = tu.diagnostics
		diags.should be_kind_of(Array)
		diags.should_not be_empty
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-clang-0.2.0 spec/clang/translation_unit_spec.rb
ffi-clang-0.1.3 spec/clang/translation_unit_spec.rb
ffi-clang-0.1.2 spec/clang/translation_unit_spec.rb
ffi-clang-0.1.1 spec/clang/translation_unit_spec.rb