This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var assert = require('assert'); | |
| describe('Alguns testes de exemplo', function(){ | |
| it('2 + 2 deve ser igual a 4', function(){ | |
| assert.equal(4, 2 + 2); | |
| }); | |
| it('2 * 2 deve ser igual a 8 (nota 0 em matemática)', function(){ | |
| assert.equal(8, 2 * 2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install mocha |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE CadeMeuMedicoBD | |
| GO | |
| USE CadeMeuMedicoBD | |
| GO | |
| CREATE TABLE Usuarios | |
| ( | |
| IDUsuario BIGINT IDENTITY(1,1) NOT NULL, | |
| Nome VARCHAR(80) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var itens = Regex.Split ("texto--texto--texto", "--"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var itens = "texto-texto-texto".Split ('-'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void) testDeveCalcularCorretamenteAMediaUtilizandoOsMetodosDeCalculo | |
| { | |
| float primeiroBimestre = 50; | |
| float segundoBimestre = 70; | |
| float terceiroBimestre = 80; | |
| float quartoBimestre = 55; | |
| float mediaEsperada = 63.75; | |
| Boletim *boletim = [[Boletim alloc]init]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #import "Boletim.h" | |
| @implementation Boletim | |
| -(void)calcularMedia | |
| { | |
| self.media = (self.primeiroBimestre + self.segundoBimestre + self.terceiroBimestre + self.quartoBimestre) / 4; | |
| } | |
| -(void)calcularMediaDoPrimeiro:(float)primeiro Segundo:(float)segundo Terceiro:(float)terceiro QuartoBimestre:(float)quarto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)calcularMedia; | |
| -(void)calcularMediaDoPrimeiro:(float)primeiro Segundo:(float)segundo Terceiro:(float)terceiro QuartoBimestre:(float)quarto; | |
| +(float)calcularMediaDoPrimeiro:(float)primeiro Segundo:(float)segundo Terceiro:(float)terceiro QuartoBimestre:(float)quarto; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void)calcularMedia; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture; | |
| CultureInfo savedUICulture = Thread.CurrentThread.CurrentUICulture; | |
| CultureInfo.englishCulture = CultureInfo.CreateSpecificCulture("en-ENU"); | |
| WorkflowRuntime wfRuntime = null; | |
| try | |
| { | |
| Thread.CurrentThread.CurrentCulture = englishCulture; | |
| Thread.CurrentThread.CurrentUICulture = englishCulture; |