Assert
Sub::Assert - Design-by-contract like pre- and postconditions, etc. SYNOPSIS use Sub::Assert; sub squareroot { my $x = shift; return $x**0.5; } assert pre => $PARAM[0] >= 1, # for the sake of simplicity post => $VOID or $RETURN <= $PARAM[0], sub => squareroot, context => novoid,...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (92): Sub::Assert Download |
Testmania is a library that complements standard unittest module with few convenient assert functions. Such as for comparing deeply nested simple data structures or xmls. All assert methods are presented as global functions, not tied to the TestCase class. Also testmania exposes all built-in...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (42): testmania Download |
Test::Extreme is a perlish unit testing framework. SYNOPSIS # In ModuleOne.pm combine unit tests with code package ModuleOne; use Test::Extreme; sub foo { return 23 }; sub test_foo { assert_equals foo, 23 } # at the end of the module run_tests ModuleOne if $0 =~ /ModuleOne.pm$/; #...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (98): Test::Extreme Download |
Query-Oriented Model for XML is a lightweight XML processing framework for Java that promotes the use of XPath instead of Java code for consuming XML. The resulting code from Query-Oriented Model for XML, is simple and expressive with no meaningless objects and no meaningless parameters - just...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (93): Query-Oriented Model for XML 0.1 Download |
This is an advanced portable C++ library with 80 variations of the ASSERT macro, to add expressions, levels and optional actions. 48 are modular because they can also use Rich Boolies, allowing much more combinations than non-modular ASSERT macros. It is very flexible because it allows you to...
Platforms: Windows, Unix, Linux, Linux Console, Linux Gnome, Linux GPL, Linux Open Source, MS-DOS
License: Freeware | Size: 1003.52 KB | Download (44): ModAssy Download |
LinLocalize is a translation tool running on Linux for easy localization of your Kylix-apps and now also Delphi-apps(!!). Linlocalize extracts all embedded Kylix/Delphi-resources (resourcestring and forms) of a Linux-ELF-file or Windows-PE-file (shared-object-file/dynamic-link-library or...
Platforms: *nix
License: Freeware | Size: 983.04 KB | Download (49): LinLocalize Download |
GNU Nana is a free library providing improved support for assertion checking (as in assert.h) and logging (printf style debugging) in GNU C and C . Features: - Space/time efficient, at least compared to assert.h. For example assert(i >= 0) uses 53 bytes on the x86, while Nana uses either 10 bytes...
Platforms: *nix, C/C++, BSD
License: Freeware | Download (52): GNU Nana Download |
RubyUnit assertion that reflects its block contents when its fails.
Platforms: Ruby
License: Freeware | Size: 40.96 KB | Download (55): assert{ 2.0 } Download |
SchemaObject provides a simple, easy to use Python object interface to a MySQL database schema. You can effortlessly write tools to test, validate, sync, migrate, or manage your schema as well as generate the SQL necessary to make changes to it. Verify all tables are InnoDB import schemaobject...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (32): SchemaObject Download |
This is my personal collection of snippets that I use in multiple projects. Each one feels a bit to small to merit it's own library. So what does it include? * memoize decorator (caching) * a storage class wrapping a dict. * unittest assert functions. * Functions for handling large JSON...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): hcs_utils Download |
If you are a user of any kind of Python console that sports tab completion, you may have come to appreciate automatic attribute listing. This is, perhaps, the most immediately rewarding part of using ObDict. To begin magical experience, follow by example. Core Features This type wraps a given...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (44): ObDict Download |
geo-utils contains two helpful utility functions: 1. Point-in-polygon test 2. Random point generator. Right now it performs better if the polygon covers a large portion of its bounding box. The test is performed using this algorithm. 1. Generate a bounding box 2. Generate a random point...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (39): geo-utils Download |
RDFStore::Parser::SiRPAC is a Perl module that implements a streaming RDF Parser as a direct implementation of XML::Parser::Expat. SYNOPSIS use RDFStore::Parser::SiRPAC; use RDFStore::NodeFactory; my $p=new RDFStore::Parser::SiRPAC( ErrorContext => 2, Handlers => { Init => sub { print...
Platforms: *nix
License: Freeware | Size: 481.28 KB | Download (102): RDFStore::Parser::SiRPAC Download |
JsTester allows validation of JavaScript code inside Java. JsTester provides a group of assert methods like JUnits Assert, and it supports validation by Douglas Crockfords Remedial JavaScript. You can also use your own validations..
Platforms: *nix
License: Freeware | Size: 9.22 KB | Download (93): JsTester Download |
SipUnit provides a test environment geared toward unit testing SIP applications. SipUnit project extends the JUnit test framework to incorporate SIP-specific assertions, and it provides a high-level API for performing the SIP operations needed to interact with or invoke a test target. A test...
Platforms: *nix
License: Freeware | Size: 5.6 MB | Download (96): SipUnit Download |
Test::Unit::TestCase is a unit testing framework base class. SYNOPSIS package FooBar; use base qw(Test::Unit::TestCase); sub new { my $self = shift()->SUPER::new(@_); # your state for fixture here return $self; } sub set_up { # provide fixture } sub tear_down { # clean up after...
Platforms: *nix
License: Freeware | Size: 45.06 KB | Download (94): Test::Unit::TestCase Download |
Test::Unit::Procedural Perl module contains a procedural style unit testing interface. SYNOPSIS use Test::Unit::Procedural; # your code to be tested goes here sub foo { return 23 }; sub bar { return 42 }; # define tests sub test_foo { assert(foo() == 23, "Your message here"); } sub...
Platforms: *nix
License: Freeware | Size: 75.78 KB | Download (95): Test::Unit::Procedural Download |
AI::Prolog::Builtins is a Perl module with builtin predicates that AI::Prolog supports. Comments Comments begin with a % and terminate at the end of the line or begin with /* and terminate with */. Variables As in Prolog, all variables begin with an upper-case letter and are not quoted....
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (102): AI::Prolog::Builtins Download |
Class::Contract - Design-by-Contract OO in Perl. SYNOPSIS package ClassName use Class::Contract; contract { inherits BaseClass; invar { ... }; attr data1; attr data2 => HASH; class attr shared => SCALAR; ctor new; method methodname; pre { ... }; failmsg Error message; post...
Platforms: *nix
License: Freeware | Size: 26.62 KB | Download (114): Class::Contract Download |
Studs MVC Framework+ contains a port of Apaches Jakarta Struts to PHP, though the libraries included in the rest of the project are much more vast. In order to implement the Struts port, it was necessary to build a core, object-oriented API in the style of the JDK and the Jakarta Commons, a...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (93): Studs MVC Framework+ Download |