• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Albero04 / Assignment_2 / #2

08 May 2025 09:59PM UTC coverage: 54.545%. First build
#2

push

Mark-oth
Codice e test3

close #2

6 of 7 new or added lines in 1 file covered. (85.71%)

6 of 11 relevant lines covered (54.55%)

0.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/src/main/java/it/unipd/mtss/IntegerToRoman.java
1
////////////////////////////////////////////////////////////////////
2
// Alberto Pignat 2111044
3
// Marco   Cossi  2113204
4
////////////////////////////////////////////////////////////////////
5
package it.unipd.mtss;
6

7
public class IntegerToRoman {
×
8

9
    public static String convert(int number){
10
      if (number < 1 || number > 3) {
1✔
11
        throw new IllegalArgumentException("Il numero deve essere compreso tra 1 e 3");
1✔
12
    }
13
    switch(number)
1✔
14
    {
15
        case 1: return "I";   
1✔
16
        case 2: return "II";  
1✔
17
        case 3: return "III"; 
1✔
18
    }
NEW
19
    return "";
×
20
    }
21
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc