From: Jean Privat Date: Thu, 1 Aug 2013 19:30:23 +0000 (-0400) Subject: tests: update ni-merge related tests X-Git-Tag: v0.6.1~73^2 X-Git-Url: http://nitlanguage.org tests: update ni-merge related tests Signed-off-by: Jean Privat --- diff --git a/tests/sav/html_page.res b/tests/sav/html_page.res index 0b192b1..3f14103 100644 --- a/tests/sav/html_page.res +++ b/tests/sav/html_page.res @@ -1,2 +1,2 @@ -Nit

# What is Nit?

Nit is an object-oriented programming language. The goal of Nit is to propose a robust statically typed programming language where structure is not a pain.

So, what does the famous hello world program look like, in Nit?

print 'Hello, World!'

# Feature Highlights

Usability

Nit's goal is to be usable by real programmers for real projects

  • KISS principle
  • Script-like language without verbosity nor cryptic statements
  • Painless static types: static typing should help programmers
  • Efficient development, efficient execution, efficient evolution.

Robustness

Nit will help you to write bug-free programs

  • Strong static typing
  • No more NullPointerException

Object-Oriented

Nit's guideline is to follow the most powerful OO principles

# Getting Started

Get Nit from its Git repository:

$ git clone http://nitlanguage.org/nit.git

Build the compiler (may be long):

$ cd nit
+Nit

# What is Nit?

Nit is an object-oriented programming language. The goal of Nit is to propose a robust statically typed programming language where structure is not a pain.

So, what does the famous hello world program look like, in Nit?

print 'Hello, World!'

# Feature Highlights

Usability

Nit's goal is to be usable by real programmers for real projects

  • KISS principle
  • Script-like language without verbosity nor cryptic statements
  • Painless static types: static typing should help programmers
  • Efficient development, efficient execution, efficient evolution.

Robustness

Nit will help you to write bug-free programs

  • Strong static typing
  • No more NullPointerException

Object-Oriented

Nit's guideline is to follow the most powerful OO principles

# Getting Started

Get Nit from its Git repository:

$ git clone http://nitlanguage.org/nit.git

Build the compiler (may be long):

$ cd nit
 $ make

Compile a program:

$ bin/nitc examples/hello_world.nit

Execute the program:

$ ./hello_world
diff --git a/tests/sav/nitmetrics_args1.res b/tests/sav/nitmetrics_args1.res index df6d492..b357a2b 100644 --- a/tests/sav/nitmetrics_args1.res +++ b/tests/sav/nitmetrics_args1.res @@ -184,7 +184,7 @@ Distribution of direct smallers (IF) Proportion of types Inherited From: 20.00% (CCIF) Proportion of classes extended by class: 0.0% (ICIF) Proportion of interfaces implemented by class: 100.00% -(IIIF) Proportion of interfaces extended by interface: 0.0% +(IIIF) Proportion of interfaces extended by interface: 100.00% --- (SL -> *) Std-Lib Inheritance metrics --- (SLDUI) Proportion of SL types inheriting another type other than Object: na% @@ -216,7 +216,7 @@ Distribution of direct smallers (UDIF) Proportion of UD types Inherited From: 20.00% (UDCCIF) Proportion of UD classes extended by class: 0.0% (UDICIF) Proportion of UD interfaces implemented by class: 100.00% -(UDIIIF) Proportion of UD interfaces extended by interface: 0.0% +(UDIIIF) Proportion of UD interfaces extended by interface: 100.00% --- (UD -> SL) User-Defined Inheritance metrics --- (UDDUISL) Proportion of UD types inheriting another type other SL type: 0.0% @@ -232,7 +232,7 @@ Distribution of direct smallers (UDIFUD) Proportion of UD types Inherited From: 20.00% (UDCCIFUD) Proportion of UD classes extended by UD class: 0.0% (UDICIFUD) Proportion of UD interfaces implemented by UD class: 100.00% -(UDIIIFUD) Proportion of UD interfaces extended by UD interface: 0.0% +(UDIIIFUD) Proportion of UD interfaces extended by UD interface: 100.00% --- Metrics of refinement usage --- Number of modules: 1 diff --git a/tests/sav/nitmetrics_args1.sav b/tests/sav/nitmetrics_args1.sav index f5debff..20d0e21 100644 --- a/tests/sav/nitmetrics_args1.sav +++ b/tests/sav/nitmetrics_args1.sav @@ -241,7 +241,7 @@ Average number of property redefinitions by redefined property: na (IF) Proportion of types Inherited From: 20.00% (CCIF) Proportion of classes extended by class: 0.0% (ICIF) Proportion of interfaces implemented by class: 100.00% -(IIIF) Proportion of interfaces extended by interface: 0.0% +(IIIF) Proportion of interfaces extended by interface: 100.00% --- (SL -> *) Std-Lib Inheritance metrics --- (SLDUI) Proportion of SL types inheriting another type other than Object: na% @@ -273,7 +273,7 @@ Average number of property redefinitions by redefined property: na (UDIF) Proportion of UD types Inherited From: 20.00% (UDCCIF) Proportion of UD classes extended by class: 0.0% (UDICIF) Proportion of UD interfaces implemented by class: 100.00% -(UDIIIF) Proportion of UD interfaces extended by interface: 0.0% +(UDIIIF) Proportion of UD interfaces extended by interface: 100.00% --- (UD -> SL) User-Defined Inheritance metrics --- (UDDUISL) Proportion of UD types inheriting another type other SL type: 0.0% @@ -289,7 +289,7 @@ Average number of property redefinitions by redefined property: na (UDIFUD) Proportion of UD types Inherited From: 20.00% (UDCCIFUD) Proportion of UD classes extended by UD class: 0.0% (UDICIFUD) Proportion of UD interfaces implemented by UD class: 100.00% -(UDIIIFUD) Proportion of UD interfaces extended by UD interface: 0.0% +(UDIIIFUD) Proportion of UD interfaces extended by UD interface: 100.00% class_hierarchy.dot classdef_hierarchy.dot model.html