Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master with feature/GraphingCalculator #805

Closed
Closed
Show file tree
Hide file tree
Changes from 149 commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
f6f1044
Simplify some of the calc engine string logic (#449)
joseartrivera Apr 11, 2019
afdda58
Drop unneeded const-qualifier on return type (#396)
janisozaur Apr 12, 2019
1093265
Improve the support of Narrator with parenthesis (#368)
rudyhuyn Apr 15, 2019
5a6c6f4
Prevent the application to crash when the current page is Date Calcul…
rudyhuyn Apr 15, 2019
775771d
Internal builds now require the OAuth access token (#457)
mcooley Apr 15, 2019
ad25fed
Keep input when users refresh currency rates (#369)
rudyhuyn Apr 16, 2019
7a7ceb5
Modify how modulo is calculated in Normal and Scientific mode. (#412)
rudyhuyn Apr 17, 2019
c150cd4
Removed AppBar, OperatorTextBox and OperandTextBox controls (#440)
jatinkumarg Apr 17, 2019
853704c
Add support for Pyeong, a Korean floorspace unit. (#444)
TurtleShip Apr 17, 2019
d21a47d
Compile CalcManager project with or without precompiled headers (#436)
Apr 18, 2019
de65db6
Decrease CPU usage of OverflowTextBlock + optimization (#403)
rudyhuyn Apr 18, 2019
8520d3f
Refactored XAML x:Names (#433)
LanceMcCarthy Apr 18, 2019
43b2d4e
Fix test code that never executes (#465)
EriWong Apr 19, 2019
0d31d5a
Fix UI issues with UnitConverter in RtL (#410)
rudyhuyn Apr 20, 2019
bd04c92
Simplify title bar (#442)
rudyhuyn Apr 20, 2019
fab2119
Clicking on the same element in the hamburger view should re-open tha…
AbduAmeen1 Apr 20, 2019
cdd2b1c
Updates to copypastemanager (#390)
Nicholas-Baron Apr 22, 2019
2a29947
Collapse CurrencySecondaryStatus when no text is present in the text …
EriWong Apr 23, 2019
452f18f
Update README to include infinite precision (#470)
bharatr21 Apr 23, 2019
861d4ef
Update the .gitignore to ignore GraphingImplOverrides.props. (#472)
Apr 23, 2019
b03a026
Allow vcxproj and sln files to merge as text. (#474)
Apr 24, 2019
1dee9dc
Fix #471 (#473)
EriWong Apr 24, 2019
cf7ec5f
Miscellaneous updates to internal release builds (#477)
mcooley Apr 25, 2019
8e1a147
Added WinAppDriver UI Tests to the Calculator Project. (#411)
hassanuz Apr 25, 2019
9728ccf
Fix bug when the negate sign is before a space (#345)
rudyhuyn Apr 26, 2019
94a90d7
UI Tests YAML updated to integrate WinAppDriver task (#480)
hassanuz Apr 30, 2019
32aaa0d
fixes #471 (#481)
EriWong Apr 30, 2019
c77f1de
Update winui to 2.1 (#484)
joseartrivera May 1, 2019
2826d37
Fix the project code style, as it is not consistent. (#236)
seyfer May 2, 2019
9f01c81
Secondary formatting changes (#489)
May 2, 2019
750130c
Accept exponential numbers without -/+ sign. (#270)
rudyhuyn May 9, 2019
28888d8
Remove Serialize/Deserialize functions never used in StandardCalculat…
rudyhuyn May 9, 2019
c568ec7
Update localized strings 2019-05-09 (#496)
mcooley May 9, 2019
b82f571
Updating version of release builds to 1905 (#500)
mcooley May 10, 2019
dcc731f
Repair empty link in ApplicationArchitecture.md (#502)
LucasLarson May 11, 2019
d8cb5c8
Keep spaces when users copy an error message (#430)
rudyhuyn May 11, 2019
860d6d3
Removed GroupName from JumpList so items can't be pinened or removed …
MahdiGhiasi May 14, 2019
9f47fe3
Fix unit tests to run on non-english devices (#289)
rudyhuyn May 14, 2019
9b920f0
Removed entrance transition for about button in NavigationView (#506)
MahdiGhiasi May 17, 2019
0f9bd40
Updating terminology in new feature development process for clarity (…
grochocki May 17, 2019
00f0f25
Added the name property for CalculationResult right/left scroll butto…
May 17, 2019
9515544
Update bug/feature templates to track if submitter requests assignmen…
HowardWolosky May 21, 2019
d4028cd
Force compiler to use utf-8 so the project compiles on systems in Chi…
Northurland May 22, 2019
2fd8dc1
Update localized strings 2019-05-24 (#521)
mcooley May 24, 2019
2b17f82
Migrate currency converter endpoints (#524)
joseartrivera May 31, 2019
6e3fe90
Wrap json parsing in try/catch (#534)
joseartrivera Jun 3, 2019
06c0dd9
Update internal package version (#532)
joseartrivera Jun 3, 2019
98f1da2
Updating version of release builds to 1906 (#537)
mcooley Jun 4, 2019
fe30c7c
Add CMake project, GCC support (#540)
janisozaur Jun 6, 2019
81aec1e
Drop __inline from conflicting declarations (#545)
janisozaur Jun 10, 2019
7276b5c
Fixes bug #483 by setting AccessibilityView property to Raw for hidde…
greedyAI Jun 13, 2019
1ee438d
Bound the calendar picker to the control above (#507)
dkheri Jun 15, 2019
dab589b
Handle date difference for ends of months (#553)
Bigpet Jun 17, 2019
da9f4ea
Fix type of m_openParenCount (#550)
janisozaur Jun 18, 2019
841906a
Update comment in scicomm.cpp (#549)
janisozaur Jun 18, 2019
711b37f
Add missing override/final to CalculatorManagerDisplayTester (#551)
janisozaur Jun 18, 2019
e9551e3
Ensure gldPrevious is scoped to its own translation unit (#556)
janisozaur Jun 18, 2019
2517854
Added Calculator Standard Mode UI Tests (#501)
sanderl Jun 21, 2019
02a3532
Remove deprecated internal-only tests (#565)
mcooley Jun 24, 2019
33b885a
Update to v142 build tools for Visual Studio 2019 (#548)
mcooley Jun 24, 2019
499e299
UI tests should be able to test both dev and store-released builds (#…
mcooley Jun 25, 2019
cb5dfdd
Modify ClipTime to adjust to local time before clipping (#558)
rudyhuyn Jun 26, 2019
b3432c9
Update to SDK 18362 (#568)
mcooley Jun 27, 2019
25708f0
Ensure consistent margins/padding with currency converter keypad (#566)
HowardWolosky Jun 28, 2019
2a5a52d
Date difference: display the difference in days (only) when we aren't…
rudyhuyn Jul 1, 2019
c3d3581
Applying NR 1 to CalculatorVector.h (#491)
Nicholas-Baron Jul 11, 2019
a35a030
Use the current locale to sort country names (#259)
rudyhuyn Jul 16, 2019
5b59bdc
Removed need for trimIdx and fDigitsFound, resulting in less code. (#…
Jul 16, 2019
23550f7
Make History and Memory list items context menu accessible using keyb…
rudyhuyn Jul 16, 2019
1b9d6b8
Use 2020 as the major version for the appxbundle (#586)
mcooley Jul 16, 2019
2ff7bb4
Unit Converter - Calculate the rounding precision of results based on…
rudyhuyn Jul 17, 2019
a638426
Updated Calculator diagnostic data collection per the specification (…
sanderl Jul 18, 2019
01cfe6d
Fix 32-bit build (#588)
mcooley Jul 18, 2019
aea1201
Update version of release builds to 1907 (#590)
mcooley Jul 18, 2019
bb027aa
Added Input pasted event and added to all modes (#593)
sanderl Jul 18, 2019
0722781
Modifying the title of the window to "Calculator [Dev]" (#531)
tanuja3 Jul 26, 2019
60c5c39
Fix #563: Odd dependency cycle (#570)
janisozaur Jul 26, 2019
8106691
Fixed issue where UI Responsive events were not fired (#603)
sanderl Jul 26, 2019
af83226
Restore user preferences (#456)
TurtleShip Jul 29, 2019
796d171
Always-on-Top mode implemented (#579)
greedyAI Jul 31, 2019
cc8491a
Currency rate: always display minimum 4 significant decimals or 2 tra…
rudyhuyn Aug 1, 2019
a7d668e
Fix the thumbprint of the certificate in the vcxproj file (#617)
rudyhuyn Aug 3, 2019
25e2a14
Updated README to note the requirement for installing WinAppDriver (#…
HowardWolosky Aug 6, 2019
c994e49
Prevent Dev title from showing up on Store builds (#627)
HowardWolosky Aug 6, 2019
672e881
Fixes Always-on-Top crashes (#626)
greedyAI Aug 7, 2019
24d997d
Update localized strings 2019-08-08 (#636)
mcooley Aug 9, 2019
5966503
Fix regression bug with application title no longer grayed out. (#632)
rudyhuyn Aug 19, 2019
71b0104
Remove unused expression item template selector (#623)
rudyhuyn Aug 20, 2019
5b2d976
Remove colorize and fullcolor app list icons (#644)
mcooley Aug 21, 2019
eb24c08
General improvement of the title bar for Always-On-Top. (#634)
rudyhuyn Aug 23, 2019
41e2e97
Optimize BitFlipPanel to suppress flicker when users switch between b…
rudyhuyn Aug 26, 2019
c9ac7ba
Update internals package to 0.0.18 (#645)
mcooley Aug 26, 2019
ae30322
Update documentation for communicating discovered security vulnerabil…
HowardWolosky Sep 3, 2019
6b8a83a
Remove ProgModeRadixChange unload (#641)
joseartrivera Sep 4, 2019
98908c6
Updated Win UI to 2.2 for Calculator and CalcViewModel projects (#658)
sanderl Sep 5, 2019
c877b0a
Replace AppChromeAcrylicHostBackdropMediumLowBrush from OverflowTextB…
rudyhuyn Sep 5, 2019
a7fb172
Update app version to 1908 (#661)
sanderl Sep 5, 2019
f0b51ae
Fix scroll buttons in CalculationResult (#652)
rudyhuyn Sep 9, 2019
d6d5591
Move unit test runs to hosted pools (#671)
mcooley Sep 16, 2019
d68e505
Add copy button to history menu item context menu (#628)
zherman Sep 19, 2019
c4fe87a
Disable ProgrammerRadixOperators when not visible
joseartrivera Sep 20, 2019
80912a3
Prevent the history panel to be displayed when using the Programmer m…
rudyhuyn Sep 20, 2019
f6f864c
Do not collapse Update Rates button in a transient state (#619)
zherman Sep 26, 2019
9a099ac
Updated signature which VS 2019 is actually enforcing (#681)
DavidShoe Sep 26, 2019
5c07857
Modify how narrator names the first and last bits of a number in Bit …
rudyhuyn Sep 27, 2019
d9bf57f
Code cleanup: simplify NarratorNotifier (#646)
mcooley Sep 29, 2019
9cb0932
Update Calc Engine for new functions needed for keyboard refresh (#662)
joseartrivera Sep 30, 2019
55074c2
Update Calculator keyboard for greater consistency and extensibility …
joseartrivera Oct 3, 2019
16e8e2d
Added new dev app icons and update version to 1909 (#705)
sanderl Oct 8, 2019
51c4845
Fix the focus when right-clicking CalculationResult's TextBlock (#698)
praveensvsrk Oct 9, 2019
033f775
fix 505 (#710)
Grommers00 Oct 13, 2019
05eda81
Add E-notation support to CopyPasteManager for standard mode (#687)
rudyhuyn Oct 14, 2019
1a9edff
add fallback colors to RevealBrush missing them (#685)
rudyhuyn Oct 17, 2019
00064fb
Modify how the Calculator control manages the focus (#686)
rudyhuyn Oct 17, 2019
b97046a
Allow users to paste expressions with ^or % (#682)
rudyhuyn Oct 18, 2019
bfa5f81
Do not hide expression when user presses Enter or = (#695)
mateka Oct 18, 2019
f6a061c
Updating CalculatorHistory to use a default destructor. (#723)
gsfreema Oct 21, 2019
d5046e1
Update localized strings 2019-10-21 (#724)
mcooley Oct 21, 2019
357bb34
Update release pipeline to use newer StoreBroker tasks (#727)
HowardWolosky Oct 22, 2019
bc298ef
Fix release pipeline yaml (#733)
HowardWolosky Oct 25, 2019
8db4c2b
Allow negative numbers without digits before the decimal point (#743)
rudyhuyn Oct 28, 2019
afa144c
Remove unnecessary dependencies from UITestFramework project (#745)
mcooley Oct 28, 2019
bc2d2d4
use short date (#739)
rudyhuyn Oct 29, 2019
25cdca9
make ControlSizeTrigger works even if the control is already loaded (…
rudyhuyn Oct 29, 2019
6366e0c
Replacing CalculatorVector usage with std::vector (#756)
gsfreema Oct 30, 2019
5e46cea
Making string concatenations more efficent (#760)
gsfreema Oct 31, 2019
b36441b
Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests …
mcooley Nov 1, 2019
62c45d9
Add KeyboardAccelerators for AlwaysOnTop (#734)
yaira2 Nov 2, 2019
44e1984
Enable code analysis in the CalcManager project (#689)
mcooley Nov 4, 2019
93f1f78
Replace wstring used in public methods by Platform::String in CalcVie…
rudyhuyn Nov 5, 2019
049d3f4
Revert "Replace wstring used in public methods by Platform::String in…
rudyhuyn Nov 5, 2019
136ade6
Replace wstring used in public methods by Platform::String in CalcVie…
rudyhuyn Nov 5, 2019
e38e911
Modify how Calculator manages the visibility of the History button (#…
rudyhuyn Nov 5, 2019
613aaeb
fix DateDifference::operator== (#762)
rudyhuyn Nov 6, 2019
8ba7234
Fix the right arrow button of CalculationResult not disappearing in s…
rudyhuyn Nov 6, 2019
577aafb
Migrate TraceLogger to runtime class (#772)
rudyhuyn Nov 6, 2019
caa1c6b
Convert DateCalculatorViewModel to runtime class (#769)
rudyhuyn Nov 6, 2019
be68e72
Updating StandardCalculatorViewModel to use algorithms (#776)
gsfreema Nov 6, 2019
5df3016
Fully separate Calculator and CalcManager (#752)
rudyhuyn Nov 6, 2019
4c81ed8
use Command instead of int to represent a command id (#781)
rudyhuyn Nov 6, 2019
01299a9
Updating code to append a wchar_t instead of const wchar_t (#778)
gsfreema Nov 11, 2019
fcf2da7
Update build version to 1910 (#786)
volkcor Nov 11, 2019
61c2d07
force a call to m_expressionContainer->Measure in UpdateScrollButtons…
rudyhuyn Nov 12, 2019
a217e05
Run localization pipeline on the Hosted Windows 2019 pool (#794)
mcooley Nov 13, 2019
b9b0e06
Convert CopyPasteManager to runtime class (#766)
rudyhuyn Nov 13, 2019
1380c7e
Use only NumberBase to represent radix in CalcViewModel (#797)
rudyhuyn Nov 14, 2019
86307f2
Modify the declaration of some properties of StandardCalculatorViewMo…
rudyhuyn Nov 14, 2019
7edf3fc
Initial merge with master
sanderl Nov 15, 2019
f03f901
Fixed areas where merge missed code
sanderl Nov 15, 2019
9442887
Fixed Linker errors in Unit Tests project by setting the target versi…
sanderl Nov 20, 2019
b0c7028
Merged with the latest feature/GraphingCalculator
sanderl Nov 20, 2019
1b2d1af
Merge branch 'feature/GraphingCalculator' into MergeWithMaster
sanderl Nov 25, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions build/pipelines/azure-pipelines.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ jobs:
- template: ./templates/run-unit-tests.yaml
parameters:
platform: x64
reimageServiceConnection: essential-experiences-interactive-reimage
reimageSubscriptionId: a8f5eb47-e59c-44b4-8e42-e70811a047b5
reimageResourceGroup: EETestPublic

- template: ./templates/run-unit-tests.yaml
parameters:
platform: x86
reimageServiceConnection: essential-experiences-interactive-reimage
reimageSubscriptionId: a8f5eb47-e59c-44b4-8e42-e70811a047b5
reimageResourceGroup: EETestPublic

- template: ./templates/package-appxbundle.yaml
3 changes: 1 addition & 2 deletions build/pipelines/azure-pipelines.loc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ name: $(BuildDefinitionName)_$(date:yyMM).$(date:dd)$(rev:rrr)
jobs:
- job: Localize
pool:
vmImage: vs2017-win2016
vmImage: windows-2019
variables:
skipComponentGovernanceDetection: true
steps:

- task: MicrosoftTDBuild.tdbuild-task.tdbuild-task.TouchdownBuildTask@1
displayName: Send resources to Touchdown Build
inputs:
Expand Down
10 changes: 2 additions & 8 deletions build/pipelines/azure-pipelines.release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ pr: none

variables:
versionMajor: 10
versionMinor: 1907
versionBuild: $[counter('10.1907.*', 0)]
versionMinor: 1910
versionBuild: $[counter('10.1910.*', 0)]
versionPatch: 0

name: '$(versionMajor).$(versionMinor).$(versionBuild).$(versionPatch)'
Expand Down Expand Up @@ -48,16 +48,10 @@ jobs:
- template: ./templates/run-unit-tests.yaml
parameters:
platform: x64
reimageServiceConnection: macool-sandbox-interactiveDesktopRS5
reimageSubscriptionId: 012a8008-c00f-45b3-9828-41ebba30141d
reimageResourceGroup: interactiveDesktopRS5

- template: ./templates/run-unit-tests.yaml
parameters:
platform: x86
reimageServiceConnection: macool-sandbox-interactiveDesktopRS5
reimageSubscriptionId: 012a8008-c00f-45b3-9828-41ebba30141d
reimageResourceGroup: interactiveDesktopRS5

- template: ./templates/package-appxbundle.yaml

Expand Down
6 changes: 3 additions & 3 deletions build/pipelines/templates/build-app-internal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ jobs:
steps:
- checkout: self
clean: true

- task: UniversalPackages@0
displayName: Download internals package
inputs:
command: download
downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsApps
vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.18
vstsPackageVersion: 0.0.22

- template: ./build-single-architecture.yaml
parameters:
Expand Down Expand Up @@ -64,4 +64,4 @@ jobs:
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
displayName: Detect open source components
inputs:
sourceScanPath: $(Agent.BuildDirectory)
sourceScanPath: $(Agent.BuildDirectory)
97 changes: 58 additions & 39 deletions build/pipelines/templates/prepare-release-internalonly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
clean: outputs
variables:
skipComponentGovernanceDetection: true
SBMediaRootPath: '$(TEMP)\SBMedia'
SBPackagePath: '$(Build.ArtifactStagingDirectory)\storeBrokerPayload'
SBLogPath: '$(SBPackagePath)\StoreBroker.log'
FlightId: '161f0975-cb5f-475b-8ef6-26383c37621f'
AppId: '9WZDNCRFHVN5'
ProductId: '00009007199266248474'
steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -91,61 +97,74 @@ jobs:
downloadDirectory: $(Build.SourcesDirectory)
vstsFeed: WindowsApps
vstsFeedPackage: calculator-internals
vstsPackageVersion: 0.0.18
vstsPackageVersion: 0.0.22

- task: PkgESStoreBrokerPackage@10
displayName: Create StoreBroker Packages
env:
XES_SERIALPOSTBUILDREADY: True
- powershell: |
# Just modify this line to indicate where your en-us PDP file is. Leave the other lines alone.
$enUSPdpFilePath = "$(Build.SourcesDirectory)\PDP\en-US\PDP.xml"

# This is going to save the release value from the PDP file to $(SBMediaReleaseVersion)
# which you can then refer to in the UniversalPackages task.
$release = ([xml](Get-Content $enUSPdpFilePath)).ProductDescription.Release.Trim()
Write-Host "##vso[task.setvariable variable=SBMediaReleaseVersion;]$release"
displayName: Determine the PDP Media release version from the en-us PDP file

- task: UniversalPackages@0
displayName: Download PDP media (screenshots, trailers) universal package
inputs:
command: download
downloadDirectory: $(SBMediaRootPath)/$(SBMediaReleaseVersion)
vstsFeed: WindowsInboxApps
vstsFeedPackage: calculator-pdp-media
vstsPackageVersion: $(SBMediaReleaseVersion)

- task: MS-RDX-MRO.windows-store-publish-dev.package-task.store-package@2
displayName: Create StoreBroker Payload
inputs:
addToFlight: false
configPath: tools/Build/StoreBroker/SBCalculatorConfig.json
PDPRootPath: $(Build.SourcesDirectory)\PDP
imagesRootPath: $(Build.SourcesDirectory)\PDPMediaRoot
appxPath: $(Build.ArtifactStagingDirectory)\appxBundleSigned\Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle
useArtifactServiceForMedia: true
outPath: $(Build.ArtifactStagingDirectory)\StoreBrokerPayload
paToken: $(System.AccessToken)
logRootPath: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs
serviceEndpoint: StoreBrokerProxy
sbConfigPath: Tools/Build/StoreBroker/SBCalculatorConfig.json
sourceFolder: $(Build.ArtifactStagingDirectory)/appxBundleSigned
contents: Microsoft.WindowsCalculator_8wekyb3d8bbwe.appxbundle
pdpPath: '$(Build.SourcesDirectory)\PDP'
pdpInclude: PDP.xml
pdpMediaPath: '$(SBMediaRootPath)'
outSBPackagePath: '$(SBPackagePath)'
outSBName: SBCalculator

- task: PublishBuildArtifacts@1
displayName: Publish StoreBrokerPayload artifact
displayName: Publish StoreBroker Payload artifact
inputs:
pathtoPublish: '$(SBPackagePath)'
artifactName: storeBrokerPayload
pathToPublish: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload

- task: PkgESStoreBrokerFlight@10
- task: MS-RDX-MRO.windows-store-publish-dev.flight-task.store-flight@2
displayName: 'Flight StoreBroker Payload to team ring'
name: StoreBrokerFlight
displayName: Flight package with StoreBroker
env:
XES_SERIALPOSTBUILDREADY: True
inputs:
packageToFlight: Custom
appId: 9WZDNCRFHVN5
flightId: 161f0975-cb5f-475b-8ef6-26383c37621f
submissionDataPath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.json
packagePath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.zip
updatePackageAction: AddPackages
logRootPath: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs

- task: PublishBuildArtifacts@1
displayName: Publish StoreBrokerLogs artifact
inputs:
artifactName: storeBrokerLogs
pathToPublish: $(Build.ArtifactStagingDirectory)/StoreBrokerLogs
serviceEndpoint: StoreBrokerProxy
appId: '$(AppId)'
flightId: '$(FlightId)'
inputMethod: JsonAndZip
jsonPath: '$(SBPackagePath)\SBCalculator.json'
zipPath: '$(SBPackagePath)\SBCalculator.zip'
force: true
skipPolling: true
targetPublishMode: Immediate
logPath: '$(SBLogPath)'

- task: PkgESStoreBrokerAeroUpload@10
displayName: Upload to Aero flighting dashboard
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
inputs:
productId: 00009007199266248474
flightId: 161f0975-cb5f-475b-8ef6-26383c37621f
submissionId: $(StoreBrokerFlight.WS_SubmissionId)
submissionDataPath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.json
packagePath: $(Build.ArtifactStagingDirectory)/StoreBrokerPayload/SBCalculator.zip
ProductId: '$(ProductId)'
FlightId: '$(FlightId)'
SubmissionId: '$(StoreBrokerFlight.WS_SubmissionId)'
SubmissionDataPath: '$(SBPackagePath)\SBCalculator.json'
PackagePath: '$(SBPackagePath)\SBCalculator.zip'
AeroEnvironment: Production

- task: PkgESLateTasks@10
displayName: Run PackageES LateTasks
env:
XES_DISABLEPROV: true
XES_DISABLEPROV: true
34 changes: 5 additions & 29 deletions build/pipelines/templates/run-unit-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
# This template contains jobs to run unit tests on the interactive test agents.
# This template contains jobs to run unit tests.

parameters:
platform: ''
reimageServiceConnection: ''
reimageSubscriptionId: ''
reimageResourceGroup: ''
runsettingsFileName: ''

jobs:
- job: UnitTests${{ parameters.platform }}
displayName: UnitTests ${{ parameters.platform }}
dependsOn: Build${{ parameters.platform }}
condition: succeeded()
pool:
name: Essential Experiences Interactive
workspace:
clean: outputs
vmImage: windows-2019
variables:
skipComponentGovernanceDetection: true
steps:
- checkout: none

- powershell: Write-Host "##vso[task.setvariable variable=agentInstanceId;isOutput=true]$($env:AgentName -replace '\D+' -as [int])"
name: LogAgentStep
displayName: Log this agent's instance for later cleanup
env:
AgentName: $(Agent.Name)

- task: DownloadBuildArtifacts@0
displayName: Download CalculatorUnitTests
Expand All @@ -41,19 +32,4 @@ jobs:
displayName: Run CalculatorUnitTests
inputs:
testAssemblyVer2: $(Build.ArtifactStagingDirectory)\drop\Release\${{ parameters.platform }}\CalculatorUnitTests\AppPackages\CalculatorUnitTests_Test\CalculatorUnitTests.appx
otherConsoleOptions: /Platform:${{ parameters.platform }}

- job: CleanUpUnitTests${{ parameters.platform }}
dependsOn: UnitTests${{ parameters.platform }}
condition: and(always(), ne(dependencies.UnitTests${{ parameters.platform }}.Outputs['LogAgentStep.agentInstanceId'], ''))
pool: server
variables:
agentInstanceId: $[ dependencies.UnitTests${{ parameters.platform }}.outputs['LogAgentStep.agentInstanceId'] ]
steps:
- task: InvokeRESTAPI@1
displayName: Reimage test machine
inputs:
connectionType: connectedServiceNameARM
azureServiceConnection: ${{ parameters.reimageServiceConnection }}
urlSuffix: subscriptions/${{ parameters.reimageSubscriptionId }}/resourceGroups/${{ parameters.reimageResourceGroup }}/providers/Microsoft.Compute/virtualMachineScaleSets/essential/reimage?api-version=2018-10-01
body: '{ "instanceIds": ["$(agentInstanceId)"] }'
otherConsoleOptions: /Platform:${{ parameters.platform }}
7 changes: 6 additions & 1 deletion src/CalcManager/CEngine/CalcInput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ bool CalcInput::TryAddDecimalPt()

if (m_base.IsEmpty())
{
m_base.value += L"0"; // Add a leading zero
m_base.value += L'0'; // Add a leading zero
}

m_decPtIndex = m_base.value.size();
Expand Down Expand Up @@ -261,6 +261,11 @@ void CalcInput::SetDecimalSymbol(wchar_t decSymbol)
}
}

bool CalcInput::IsEmpty()
{
return m_base.IsEmpty() && !m_hasExponent && m_exponent.IsEmpty() && !m_hasDecimal;
}

wstring CalcInput::ToString(uint32_t radix)
{
// In theory both the base and exponent could be C_NUM_MAX_DIGITS long.
Expand Down
4 changes: 2 additions & 2 deletions src/CalcManager/CEngine/CalcUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ bool IsOpInRange(OpCode op, uint32_t x, uint32_t y)

bool IsBinOpCode(OpCode opCode)
{
return IsOpInRange(opCode, IDC_AND, IDC_PWR);
return IsOpInRange(opCode, IDC_AND, IDC_PWR) || IsOpInRange(opCode, IDC_BINARYEXTENDEDFIRST, IDC_BINARYEXTENDEDLAST);
}

// WARNING: IDC_SIGN is a special unary op but still this doesn't catch this. Caller has to be aware
// of it and catch it themselves or not needing this
bool IsUnaryOpCode(OpCode opCode)
{
return IsOpInRange(opCode, IDC_UNARYFIRST, IDC_UNARYLAST);
return (IsOpInRange(opCode, IDC_UNARYFIRST, IDC_UNARYLAST) || IsOpInRange(opCode, IDC_UNARYEXTENDEDFIRST, IDC_UNARYEXTENDEDLAST));
}

bool IsDigitOpCode(OpCode opCode)
Expand Down
Loading