diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 11:21:49 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-01-23 11:21:49 +0100 |
commit | 8ed8172ace50b7f8ee691ddfe3cc8eb87904b934 (patch) | |
tree | 05715d5ac1223a24977a2e3ee6fc4e5088bc2a9a /spec/eina_log_spec.rb | |
parent | 63f08a50dce1972e3496e875088caf5618b1003c (diff) | |
download | ffi-efl-8ed8172ace50b7f8ee691ddfe3cc8eb87904b934.zip ffi-efl-8ed8172ace50b7f8ee691ddfe3cc8eb87904b934.tar.gz |
EinaLog : update enum :eina_log_level and specs
Diffstat (limited to 'spec/eina_log_spec.rb')
-rw-r--r-- | spec/eina_log_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/eina_log_spec.rb b/spec/eina_log_spec.rb index cfe31d3..cd07845 100644 --- a/spec/eina_log_spec.rb +++ b/spec/eina_log_spec.rb @@ -20,6 +20,16 @@ describe 'Efl::EinaLog' do EinaLog.level.should == 3 end # + it "eina_log_level enum should be well defined" do + Efl::Native.enum_value(:eina_log_level_critical).should == 0 + Efl::Native.enum_value(:eina_log_level_err).should == 1 + Efl::Native.enum_value(:eina_log_level_warn).should == 2 + Efl::Native.enum_value(:eina_log_level_info).should == 3 + Efl::Native.enum_value(:eina_log_level_dbg).should == 4 + Efl::Native.enum_value(:eina_log_levels).should == 5 + Efl::Native.enum_value(:eina_log_level_unknown).should == (-2147483647-1) + end + # it "color_disable set/get" do bool_check EinaLog, 'color_disable' end |