class AssertTest extends GroovyTestCase { void testAssert() { def x = null assert x == null assert x != "abc" assert x != "foo" x = "abc"
http://www.codebf.com/read/171479/5394824
class ArrayTypeTest extends GroovyTestCase { void testClosureWithTypedParam() { def c = {String[] foo->println("called with $foo") } c(null) } void testVariableType() {
http://www.codebf.com/read/171479/5394834
class UnsafeNavigationTest extends GroovyTestCase { void testUnsafePropertyNavigations() { def x = null try { def y = x.foo fail("should fail")
http://www.codebf.com/read/171479/5394863
/** * @author Jeremy Rayner */ class NullPropertyTest extends GroovyTestCase { def wensleydale = null void testNullProperty() { assert wensleydale == null } }
http://www.codebf.com/read/171479/5394965
/** * @version $Revision: 1.5 $ */ class Groovy252_Bug extends GroovyTestCase { def count = 0 void testBug() { def value = f() assert value == null
http://www.codebf.com/read/171479/5395041
/** * @version $Revision: 1.3 $ */ class NullCompareBug extends GroovyTestCase { void testBug() { assert "dog" > null assert null < "dog" assert null == null } }
http://www.codebf.com/read/171479/5395063
#include HWND g_hWnd; HMODULE hHookLib = NULL; LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstanc
http://www.codebf.com/read/171026/5399705
#include "stdafx.h" #include "SingleInstance.h" //*********************************************** CSingleInstance::CSingleInstance() : m_hMutex(NULL) { } //**********************************
http://www.codebf.com/read/171026/5400082
#include #include #include #include "IPC.h" //*********************************************** CIPC::CIPC() : m_hFileMap(NULL), m_hMutex(NULL) { } //*****
http://www.codebf.com/read/171026/5400107
http://www.codebf.com/read/171026/5400194
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机