summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-14 06:24:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-14 06:24:37 +0200
commitb960e00f5d165c659c7dc827b65ff8b563e84f10 (patch)
treed1d4131e635a1b2f5389586c0ac34701bcecc651 /spec
parent38a8992822c638ded9db7e3b1ae5aa28dee38fab (diff)
downloadffi-efl-b960e00f5d165c659c7dc827b65ff8b563e84f10.zip
ffi-efl-b960e00f5d165c659c7dc827b65ff8b563e84f10.tar.gz
update evas, use ffi_helper and FFI::Enum
Diffstat (limited to 'spec')
-rw-r--r--spec/evas_spec.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/spec/evas_spec.rb b/spec/evas_spec.rb
index a708833..f26b29c 100644
--- a/spec/evas_spec.rb
+++ b/spec/evas_spec.rb
@@ -19,9 +19,21 @@ describe E17::EVAS do
EVAS.shutdown.should eql 0
end
#
+ it "evas alloc error enum is ok" do
+ EVAS.enum_value(:none).should eql 0
+ EVAS.enum_value(:fatal).should eql 1
+ EVAS.enum_value(:recovered).should eql 2
+ EVAS.enum_type(:evas_alloc_error)[0].should eql :none
+ EVAS.enum_type(:evas_alloc_error)[1].should eql :fatal
+ EVAS.enum_type(:evas_alloc_error)[2].should eql :recovered
+ EVAS.enum_type(:evas_alloc_error)[:none].should eql 0
+ EVAS.enum_type(:evas_alloc_error)[:fatal].should eql 1
+ EVAS.enum_type(:evas_alloc_error)[:recovered].should eql 2
+ end
+ #
it "should have no memory allocation error occured" do
EVAS.init
- EVAS.alloc_error.should eql EVAS::ALLOC_ERROR_NONE
+ EVAS.alloc_error.should eql :none
EVAS.shutdown
end
#